diff --git a/relay/model/general.go b/relay/model/general.go index c34c1c2d..aacc8467 100644 --- a/relay/model/general.go +++ b/relay/model/general.go @@ -1,7 +1,15 @@ package model type ResponseFormat struct { - Type string `json:"type,omitempty"` + Type string `json:"type,omitempty"` + JsonSchema *JSONSchema `json:"json_schema,omitempty"` +} + +type JSONSchema 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 {