Skip to content

Commit 177c143

Browse files
Fix OpenAI error when properties is empty in function call : object schema missing properties (sashabaranov#419)
Co-authored-by: Rick <[email protected]>
1 parent 1efcf2d commit 177c143

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jsonschema/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type Definition struct {
2727
// one element, where each element is unique. You will probably only use this with strings.
2828
Enum []string `json:"enum,omitempty"`
2929
// Properties describes the properties of an object, if the schema type is Object.
30-
Properties map[string]Definition `json:"properties,omitempty"`
30+
Properties map[string]Definition `json:"properties"`
3131
// Required specifies which properties are required, if the schema type is Object.
3232
Required []string `json:"required,omitempty"`
3333
// Items specifies which data type an array contains, if the schema type is Array.

0 commit comments

Comments
 (0)