Skip to content

Commit

Permalink
add items, which is required for array type (sashabaranov#373)
Browse files Browse the repository at this point in the history
* add items, which is required for array type

* use JSONSchemaDefine directly
  • Loading branch information
nftechie authored Jun 16, 2023
1 parent 0bd14f9 commit ac25f31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ type JSONSchemaDefine struct {
Properties map[string]*JSONSchemaDefine `json:"properties,omitempty"`
// Required is a required of JSON Schema. It used if Type is JSONSchemaTypeObject.
Required []string `json:"required,omitempty"`
// Items is a property of JSON Schema. It used if Type is JSONSchemaTypeArray.
Items *JSONSchemaDefine `json:"items,omitempty"`
}

type FinishReason string
Expand Down

0 comments on commit ac25f31

Please sign in to comment.