on main help sign in
fix: add missing openai-compat in schema (#1461)
commit42122dc2fced97e806c074593e6725b8feed5808 authorBruno Krugel <brunokrugel@gmail.com> dateTue 18 Nov 2025, 09:43 (1 year ago) parentafc8fd0
2 files changed+3−2
internal/config/config.go+1−1 schema.json+2−1
internal/config/config.go+1−1
@@ -89,7 +89,7 @@ type ProviderConfig struct {
8989 // The provider's API endpoint.
9090 BaseURL string `json:"base_url,omitempty" jsonschema:"description=Base URL for the provider's API,format=uri,example=https://api.openai.com/v1"`
9191 // The provider type, e.g. "openai", "anthropic", etc. if empty it defaults to openai.
92− Type catwalk.Type `json:"type,omitempty" jsonschema:"description=Provider type that determines the API format,enum=openai,enum=anthropic,enum=gemini,enum=azure,enum=vertexai,default=openai"`
92+ Type catwalk.Type `json:"type,omitempty" jsonschema:"description=Provider type that determines the API format,enum=openai,enum=openai-compat,enum=anthropic,enum=gemini,enum=azure,enum=vertexai,default=openai"`
9393 // The provider's API key.
9494 APIKey string `json:"api_key,omitempty" jsonschema:"description=API key for authentication with the provider,example=$OPENAI_API_KEY"`
9595 // Marks the provider as disabled.
schema.json+2−1
@@ -471,7 +471,8 @@
471471 "anthropic",
472472 "gemini",
473473 "azure",
474− "vertexai"
474+ "vertexai",
475+ "openai-compat"
475476 ],
476477 "description": "Provider type that determines the API format",
477478 "default": "openai"