From 42122dc2fced97e806c074593e6725b8feed5808 Mon Sep 17 00:00:00 2001 From: Bruno Krugel Date: Tue, 18 Nov 2025 09:43:00 -0300 Subject: [PATCH] fix: add missing openai-compat in schema (#1461) --- internal/config/config.go | 2 +- schema.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 5cc519c110476683928b8e329a0e4bf1e18c4074..f6bd38d8d93d5bab3fe6bb7b2c16f524b6ffdf87 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -89,7 +89,7 @@ type ProviderConfig struct { // The provider's API endpoint. BaseURL string `json:"base_url,omitempty" jsonschema:"description=Base URL for the provider's API,format=uri,example=https://api.openai.com/v1"` // The provider type, e.g. "openai", "anthropic", etc. if empty it defaults to openai. - 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"` + 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"` // The provider's API key. APIKey string `json:"api_key,omitempty" jsonschema:"description=API key for authentication with the provider,example=$OPENAI_API_KEY"` // Marks the provider as disabled. diff --git a/schema.json b/schema.json index 9fb49e12fa81d287832fbe5639420e1598711ad5..c9cadc5a51c40c27cfb0b75b9cdae810100714ec 100644 --- a/schema.json +++ b/schema.json @@ -471,7 +471,8 @@ "anthropic", "gemini", "azure", - "vertexai" + "vertexai", + "openai-compat" ], "description": "Provider type that determines the API format", "default": "openai"