Skip to content

Commit

Permalink
correct CreateCompletionParams top_p json name (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
ariain authored Mar 10, 2023
1 parent 0c89b58 commit 3311f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chat/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type CreateCompletionParams struct {
Stream bool `json:"stream,omitempty"`

N int `json:"n,omitempty"`
TopP float64 `json:"top_n,omitempty"`
TopP float64 `json:"top_p,omitempty"`
Temperature float64 `json:"temperature,omitempty"`
MaxTokens int `json:"max_tokens,omitempty"`

Expand Down

0 comments on commit 3311f10

Please sign in to comment.