Compare commits

...

2 Commits

Author SHA1 Message Date
majian
7ca4b01da2 Merge bc605e141c into f9774698e9 2024-08-21 09:01:46 +00:00
majian159
bc605e141c feat: responseFormat support json_schema 2024-08-21 17:01:37 +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 {