|
|
|
@ -372,7 +372,7 @@ func TestGenerateChat(t *testing.T) { |
|
|
|
Type string `json:"type"` |
|
|
|
Required []string `json:"required"` |
|
|
|
Properties map[string]struct { |
|
|
|
Type string `json:"type"` |
|
|
|
Type api.PropertyType `json:"type"` |
|
|
|
Description string `json:"description"` |
|
|
|
Enum []string `json:"enum,omitempty"` |
|
|
|
} `json:"properties"` |
|
|
|
@ -380,16 +380,16 @@ func TestGenerateChat(t *testing.T) { |
|
|
|
Type: "object", |
|
|
|
Required: []string{"location"}, |
|
|
|
Properties: map[string]struct { |
|
|
|
Type string `json:"type"` |
|
|
|
Type api.PropertyType `json:"type"` |
|
|
|
Description string `json:"description"` |
|
|
|
Enum []string `json:"enum,omitempty"` |
|
|
|
}{ |
|
|
|
"location": { |
|
|
|
Type: "string", |
|
|
|
Type: api.PropertyType{"string"}, |
|
|
|
Description: "The city and state", |
|
|
|
}, |
|
|
|
"unit": { |
|
|
|
Type: "string", |
|
|
|
Type: api.PropertyType{"string"}, |
|
|
|
Enum: []string{"celsius", "fahrenheit"}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -469,7 +469,7 @@ func TestGenerateChat(t *testing.T) { |
|
|
|
Type string `json:"type"` |
|
|
|
Required []string `json:"required"` |
|
|
|
Properties map[string]struct { |
|
|
|
Type string `json:"type"` |
|
|
|
Type api.PropertyType `json:"type"` |
|
|
|
Description string `json:"description"` |
|
|
|
Enum []string `json:"enum,omitempty"` |
|
|
|
} `json:"properties"` |
|
|
|
@ -477,16 +477,16 @@ func TestGenerateChat(t *testing.T) { |
|
|
|
Type: "object", |
|
|
|
Required: []string{"location"}, |
|
|
|
Properties: map[string]struct { |
|
|
|
Type string `json:"type"` |
|
|
|
Type api.PropertyType `json:"type"` |
|
|
|
Description string `json:"description"` |
|
|
|
Enum []string `json:"enum,omitempty"` |
|
|
|
}{ |
|
|
|
"location": { |
|
|
|
Type: "string", |
|
|
|
Type: api.PropertyType{"string"}, |
|
|
|
Description: "The city and state", |
|
|
|
}, |
|
|
|
"unit": { |
|
|
|
Type: "string", |
|
|
|
Type: api.PropertyType{"string"}, |
|
|
|
Enum: []string{"celsius", "fahrenheit"}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|