Make reponse format JSONSchema optional (#820)

This commit is contained in:
Tyler Gannon
2024-08-07 12:40:45 -07:00
committed by GitHub
parent 623074c14a
commit 6439e1fcc9

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 {