Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NotFoundErr = errors.New("not found") BusyErr = errors.New("busy, not valid now") )
Functions ¶
This section is empty.
Types ¶
type ChatModel ¶
type ChatModel string
const ( RoleAssistant = "assistant" RoleUser = "user" RoleSystem = "system" GPT3Model ChatModel = "gpt-3.5" GPT3PlusModel ChatModel = "gpt-3.5-turbo" GPT4Model ChatModel = "gpt-4" GPT4PlusModel ChatModel = "gpt-4-32k" NonModel ChatModel = "" ImgModel ChatModel = "image" TxtModel ChatModel = "text" )
type ChatReq ¶
type ChatReq struct {
Messages []*Delta `json:"messages"`
Model string `json:"model,omitempty"`
Stream bool `json:"stream,omitempty"`
Temperature float32 `json:"temperature,omitempty"`
Presence int `json:"presence_penalty,omitempty"`
}
gpt request
type ChatResp ¶
Click to show internal directories.
Click to hide internal directories.