Skip to content

Commit

Permalink
Fix OpenAI error when properties is empty in function call : object s…
Browse files Browse the repository at this point in the history
…chema missing properties (sashabaranov#419)

Co-authored-by: Rick <medivhzhan@icloud.com>
  • Loading branch information
royalrick and royalmorty authored Jun 30, 2023
1 parent 1efcf2d commit 177c143
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonschema/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type Definition struct {
// one element, where each element is unique. You will probably only use this with strings.
Enum []string `json:"enum,omitempty"`
// Properties describes the properties of an object, if the schema type is Object.
Properties map[string]Definition `json:"properties,omitempty"`
Properties map[string]Definition `json:"properties"`
// Required specifies which properties are required, if the schema type is Object.
Required []string `json:"required,omitempty"`
// Items specifies which data type an array contains, if the schema type is Array.
Expand Down

0 comments on commit 177c143

Please sign in to comment.