fix: use pointer for ChatCompletionResponseFormat (#544)

This commit is contained in:
Simone Vellei
2023-11-07 22:30:05 +01:00
committed by GitHub
parent 1ad6b6f53d
commit a20eb08b79

View File

@@ -98,7 +98,7 @@ type ChatCompletionRequest struct {
Stream bool `json:"stream,omitempty"` Stream bool `json:"stream,omitempty"`
Stop []string `json:"stop,omitempty"` Stop []string `json:"stop,omitempty"`
PresencePenalty float32 `json:"presence_penalty,omitempty"` PresencePenalty float32 `json:"presence_penalty,omitempty"`
ResponseFormat ChatCompletionResponseFormat `json:"response_format,omitempty"` ResponseFormat *ChatCompletionResponseFormat `json:"response_format,omitempty"`
Seed *int `json:"seed,omitempty"` Seed *int `json:"seed,omitempty"`
FrequencyPenalty float32 `json:"frequency_penalty,omitempty"` FrequencyPenalty float32 `json:"frequency_penalty,omitempty"`
// LogitBias is must be a token id string (specified by their token ID in the tokenizer), not a word string. // LogitBias is must be a token id string (specified by their token ID in the tokenizer), not a word string.