on main help sign in
fix: add missing openai-compat in schema (#1461)
42122dcBruno Krugel
internal/config/config.go+1−1
@@ -89,7 +89,7 @@ type ProviderConfig struct {
89 // The provider's API endpoint.
89 // The provider's API endpoint.
90 BaseURL string `json:"base_url,omitempty" jsonschema:"description=Base URL for the provider's API,format=uri,example=https://api.openai.com/v1"`
90 BaseURL string `json:"base_url,omitempty" jsonschema:"description=Base URL for the provider's API,format=uri,example=https://api.openai.com/v1"`
91 // The provider type, e.g. "openai", "anthropic", etc. if empty it defaults to openai.
91 // 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"`
93 // The provider's API key.
93 // The provider's API key.
94 APIKey string `json:"api_key,omitempty" jsonschema:"description=API key for authentication with the provider,example=$OPENAI_API_KEY"`
94 APIKey string `json:"api_key,omitempty" jsonschema:"description=API key for authentication with the provider,example=$OPENAI_API_KEY"`
95 // Marks the provider as disabled.
95 // Marks the provider as disabled.
schema.json+2−1
@@ -471,7 +471,8 @@
471 "anthropic",
471 "anthropic",
472 "gemini",
472 "gemini",
473 "azure",
473 "azure",
474− "vertexai"
474+ "vertexai",
475+ "openai-compat"
475 ],
476 ],
476 "description": "Provider type that determines the API format",
477 "description": "Provider type that determines the API format",
477 "default": "openai"
478 "default": "openai"