Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FunctionCall ¶
type Message ¶
type Message struct { Role string `json:"role"` Content string `json:"content"` Name string `json:"name,omitempty"` FunctionCall *FunctionCall `json:"function_call,omitempty"` }
type RequestBody ¶
type RequestBody struct { Model string `json:"model"` Messages []Message `json:"messages"` Functions []Function `json:"functions,omitempty"` FunctionCall interface{} `json:"function_call,omitempty"` Temperature *float64 `json:"temperature,omitempty"` TopP *float64 `json:"top_p,omitempty"` N *int `json:"n,omitempty"` Stream *bool `json:"stream,omitempty"` Stop interface{} `json:"stop,omitempty"` MaxTokens *int `json:"max_tokens,omitempty"` PresencePenalty *float64 `json:"presence_penalty,omitempty"` FrequencyPenalty *float64 `json:"frequency_penalty,omitempty"` LogitBias interface{} `json:"logit_bias,omitempty"` User *string `json:"user,omitempty"` }
Click to show internal directories.
Click to hide internal directories.