File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,18 @@ type ChatCompletionMessage struct {
1919
2020// ChatCompletionRequest represents a request structure for chat completion API.
2121type ChatCompletionRequest struct {
22- Model string `json:"model"`
23- Messages []ChatCompletionMessage `json:"messages"`
22+ Model string `json:"model"`
23+ Messages []ChatCompletionMessage `json:"messages"`
24+ MaxTokens int `json:"max_tokens,omitempty"`
25+ Temperature float32 `json:"temperature,omitempty"`
26+ TopP float32 `json:"top_p,omitempty"`
27+ N int `json:"n,omitempty"`
28+ Stream bool `json:"stream,omitempty"`
29+ Stop []string `json:"stop,omitempty"`
30+ PresencePenalty float32 `json:"presence_penalty,omitempty"`
31+ FrequencyPenalty float32 `json:"frequency_penalty,omitempty"`
32+ LogitBias map [string ]int `json:"logit_bias,omitempty"`
33+ User string `json:"user,omitempty"`
2434}
2535
2636type ChatCompletionChoice struct {
You can’t perform that action at this time.
0 commit comments