Skip to content

Commit

Permalink
Update chat.go
Browse files Browse the repository at this point in the history
  • Loading branch information
l-winston authored Sep 26, 2024
1 parent 11af77b commit d1d4a5e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@ type ChatCompletionRequest struct {
MaxTokens int `json:"max_tokens,omitempty"`
// MaxCompletionTokens An upper bound for the number of tokens that can be generated for a completion,
// including visible output tokens and reasoning tokens https://platform.openai.com/docs/guides/reasoning

MaxCompletionTokens int `json:"max_completion_tokens,omitempty"`
Temperature float32 `json:"temperature,omitempty"`
TopP float32 `json:"top_p,omitempty"`
Expand All @@ -220,7 +219,6 @@ type ChatCompletionRequest struct {
ResponseFormat *ChatCompletionResponseFormat `json:"response_format,omitempty"`
Seed *int `json:"seed,omitempty"`
FrequencyPenalty float32 `json:"frequency_penalty,omitempty"`

// LogitBias i s must be a token id string (specified by their token ID in the tokenizer), not a word string.
// incorrect: `"logit_bias":{"You": 6}`, correct: `"logit_bias":{"1639": 6}`
// refs: https://platform.openai.com/docs/api-reference/chat/create#chat/create-logit_bias
Expand Down

0 comments on commit d1d4a5e

Please sign in to comment.