Adding Answer request AND adding best_of option to Completion. (#5)

* adding best of option

* adding answers option

* fixing small mistake
This commit is contained in:
Sveinn Óttar Lárusson
2021-06-06 18:32:12 +00:00
committed by GitHub
parent c12d250ab8
commit 2be4a268a8
2 changed files with 50 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ type CompletionRequest struct {
PresencePenalty float32 `json:"presence_penalty,omitempty"`
FrequencyPenalty float32 `json:"frequency_penalty,omitempty"`
BestOf int `json:"best_of,omitempty"`
}
// Choice represents one of possible completions