Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatCompletion ¶
type ChatCompletion struct { Model string `json:"model"` Messages []ChatMessage `json:"messages"` Stream bool `json:"stream"` Temperature float32 `json:"temperature"` TopP float32 `json:"top_p"` //N int `json:"n"` MaxTokens int `json:"max_tokens"` //Stop string `json:"stop"` PresencePenalty float32 `json:"presence_penalty"` //FrequencyPenalty float32 `json:"frequency_penalty"` User string `json:"user"` }
ChatCompletion OpenAI的参数列表
type ChatHistory ¶
type ChatMessage ¶
type ChatReq ¶
type ChatReq struct { Prompt string `form:"prompt" json:"prompt"` ConversationId *uint `form:"conversationId" json:"conversationId"` ConversationType *uint `form:"conversationType" json:"conversationType"` PromptId uint `form:"promptId" json:"promptId"` StandardAlone uint `form:"standardAlone" json:"standardAlone"` Sign string `form:"sign" json:"sign"` }
ChatReq 请求参数列表
type ConversationDataGroups ¶
type ConversationSearch ¶
type EventStreamResult ¶
type FeedbackSearch ¶
type MailAccountSearch ¶
type PromptSearch ¶
Click to show internal directories.
Click to hide internal directories.