Skip to content

Commit

Permalink
add Items to JSONSchemaDefine for JsonTypeArray.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryomak committed Jun 15, 2023
1 parent 0bd14f9 commit ffbdff2
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 items of JSON Schema. It used if Type is JSONSchemaTypeArray.
Items *JSONSchemaDefine `json:"items,omitempty"`
}

type FinishReason string
Expand Down

0 comments on commit ffbdff2

Please sign in to comment.