Make reponse format JSONSchema optional (#820)

This commit is contained in:
Tyler Gannon
2024-08-07 20:40:45 +01:00
committed by GitHub
parent 623074c14a
commit 6439e1fcc9
+1 -1
View File
@@ -183,7 +183,7 @@ const (
type ChatCompletionResponseFormat struct {
Type ChatCompletionResponseFormatType `json:"type,omitempty"`
JSONSchema ChatCompletionResponseFormatJSONSchema `json:"json_schema,omitempty"`
JSONSchema *ChatCompletionResponseFormatJSONSchema `json:"json_schema,omitempty"`
}
type ChatCompletionResponseFormatJSONSchema struct {