Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayHistory ¶ added in v0.0.8
func MessageToMap ¶
func MessageToMap(message openai.ChatCompletionMessageParamUnion) (map[string]string, error)
MessageToMap converts an OpenAI chat message to a map with string keys and values
func MessagesToSlice ¶
func MessagesToSlice(messages []openai.ChatCompletionMessageParamUnion) ([]map[string]string, error)
MessagesToSlice converts a slice of OpenAI chat messages to a slice of string maps
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.