Skip to content

Commit

Permalink
logit_bias field added to the completion request (sashabaranov#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
b0noI committed Jan 10, 2022
1 parent 7ff9fed commit eecd212
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ type CompletionRequest struct {
Echo bool `json:"echo,omitempty"`
Stop []string `json:"stop,omitempty"`

PresencePenalty float32 `json:"presence_penalty,omitempty"`
FrequencyPenalty float32 `json:"frequency_penalty,omitempty"`
BestOf int `json:"best_of,omitempty"`
PresencePenalty float32 `json:"presence_penalty,omitempty"`
FrequencyPenalty float32 `json:"frequency_penalty,omitempty"`
BestOf int `json:"best_of,omitempty"`
LogitBias map[string]int `json:"logit_bias,omitempty"`
}

// Choice represents one of possible completions
Expand Down

0 comments on commit eecd212

Please sign in to comment.