diff --git a/relay/model/general.go b/relay/model/general.go index 229a61c1..a138fc57 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 *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 {