Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatCompletionMessage ¶
type ChatCompletionModel ¶
type ChatCompletionModel struct { Id string `json:"id"` Choices []ChoiceModel `json:"choices"` Model string `json:"model"` }
type ChatCompletionRequest ¶
type ChatCompletionRequest struct {
Messages []ChatCompletionMessage `json:"messages"`
}
type ChatFinishReason ¶
type ChatFinishReason string
const ( Stop ChatFinishReason = "stop" Length ChatFinishReason = "length" ContentFilter ChatFinishReason = "content_filter" FunctionCall ChatFinishReason = "function_call" )
type ChoiceModel ¶
type ChoiceModel struct { FinishReason ChatFinishReason `json:"finish_reason"` Index int32 `json:"index"` Message ChatCompletionMessage `json:"message"` }
type KnowledgeModelChat ¶
type KnowledgeModelChat struct { Messages []ChatCompletionMessage `json:"messages"` CreatedOn time.Time `json:"created_on"` }
type KnowledgeModelChatHistory ¶
type KnowledgeModelChatHistory map[string]KnowledgeModelChat
Click to show internal directories.
Click to hide internal directories.