Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoChatCompletion ¶
func GetEmbedding ¶
Types ¶
type ChatCompletion ¶
type ChatCompletion struct { Model string `json:"model"` Messages []Message `json:"messages"` Images []string `json:"images,omitempty"` Stream bool `json:"stream"` Raw bool `json:"raw"` }
func NewChatCompletionRequest ¶
func NewChatCompletionRequest(model string, prompt Prompt) ChatCompletion
Click to show internal directories.
Click to hide internal directories.