Compare commits

...

2 Commits

Author SHA1 Message Date
majian
6720dd18ad Merge 603f17df69 into f9774698e9 2024-08-21 07:21:33 +00:00
majian159
603f17df69 feat: ResponseFormat support json_schema 2024-08-21 15:18:29 +08:00

View File

@@ -1,7 +1,15 @@
package model
type ResponseFormat struct {
Type string `json:"type,omitempty"`
Type string `json:"type,omitempty"`
JsonSchema ResponseFormatJsonSchema `json:"json_schema,omitempty"`
}
type ResponseFormatJsonSchema struct {
Description string `json:"description,omitempty"`
Name string `json:"name"`
Schema map[string]interface{} `json:"schema,omitempty"`
Strict *bool `json:"strict,omitempty"`
}
type GeneralOpenAIRequest struct {