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 {
19
19
20
20
// ChatCompletionRequest represents a request structure for chat completion API.
21
21
type 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"`
24
34
}
25
35
26
36
type ChatCompletionChoice struct {
You can’t perform that action at this time.
0 commit comments