Skip to content

Commit 6439e1f

Browse files
authored
Make reponse format JSONSchema optional (#820)
1 parent 623074c commit 6439e1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chat.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ const (
182182
)
183183

184184
type ChatCompletionResponseFormat struct {
185-
Type ChatCompletionResponseFormatType `json:"type,omitempty"`
186-
JSONSchema ChatCompletionResponseFormatJSONSchema `json:"json_schema,omitempty"`
185+
Type ChatCompletionResponseFormatType `json:"type,omitempty"`
186+
JSONSchema *ChatCompletionResponseFormatJSONSchema `json:"json_schema,omitempty"`
187187
}
188188

189189
type ChatCompletionResponseFormatJSONSchema struct {

0 commit comments

Comments
 (0)