diff --git a/docs/openapi/openapi.json b/docs/openapi/openapi.json index e40445ddfe5..021142b40bb 100644 --- a/docs/openapi/openapi.json +++ b/docs/openapi/openapi.json @@ -62122,22 +62122,6 @@ }, "nullable": true }, - "azure_api_version": { - "type": "object", - "description": "Environment variable configuration", - "properties": { - "value": { - "type": "string" - }, - "env_var": { - "type": "string" - }, - "from_env": { - "type": "boolean" - } - }, - "nullable": true - }, "azure_client_id": { "type": "object", "description": "Environment variable configuration", diff --git a/docs/openapi/schemas/management/governance.yaml b/docs/openapi/schemas/management/governance.yaml index 773158eb686..2abfd17d537 100644 --- a/docs/openapi/schemas/management/governance.yaml +++ b/docs/openapi/schemas/management/governance.yaml @@ -599,9 +599,6 @@ TableKey: azure_endpoint: $ref: '../../schemas/management/common.yaml#/EnvVar' nullable: true - azure_api_version: - $ref: '../../schemas/management/common.yaml#/EnvVar' - nullable: true azure_client_id: $ref: '../../schemas/management/common.yaml#/EnvVar' nullable: true diff --git a/examples/configs/withprompushgateway/config.json b/examples/configs/withprompushgateway/config.json index 42b6ce776ff..31610a26713 100644 --- a/examples/configs/withprompushgateway/config.json +++ b/examples/configs/withprompushgateway/config.json @@ -164,8 +164,7 @@ "name": "Azure API Key", "value": "env.AZURE_API_KEY", "azure_key_config": { - "endpoint": "env.AZURE_ENDPOINT", - "api_version": "env.AZURE_API_VERSION" + "endpoint": "env.AZURE_ENDPOINT" }, "weight": 1, "models": [ diff --git a/examples/configs/withvirtualkeys/config.json b/examples/configs/withvirtualkeys/config.json index ac29bd301f0..7aa1bbe6807 100644 --- a/examples/configs/withvirtualkeys/config.json +++ b/examples/configs/withvirtualkeys/config.json @@ -134,7 +134,6 @@ { "id": "key-azure-us-1-prod", "azure_key_config": { - "api_version": "2025-03-01-preview", "endpoint": "https://orca-prod-us-east-1.openai.azure.com/" }, "models": [ @@ -153,7 +152,6 @@ { "id": "key-azure-us-2-prod", "azure_key_config": { - "api_version": "2025-03-01-preview", "endpoint": "https://orca-prod-us-east-2.openai.azure.com/" }, "models": [ @@ -172,7 +170,6 @@ { "id": "key-azure-eu-1-prod", "azure_key_config": { - "api_version": "2025-03-01-preview", "endpoint": "https://orca-prod-eu-central-1.openai.azure.com/" }, "models": [ diff --git a/tests/config.json b/tests/config.json index cea29e3869d..1b7472c7160 100644 --- a/tests/config.json +++ b/tests/config.json @@ -215,8 +215,7 @@ "name": "Azure API Key", "value": "env.AZURE_API_KEY", "azure_key_config": { - "endpoint": "env.AZURE_ENDPOINT", - "api_version": "env.AZURE_API_VERSION" + "endpoint": "env.AZURE_ENDPOINT" }, "aliases": { "gpt-5.4": "gpt-5.4", diff --git a/tests/integrations/python/config.json b/tests/integrations/python/config.json index 9dcb4d9d201..d96143979ca 100644 --- a/tests/integrations/python/config.json +++ b/tests/integrations/python/config.json @@ -216,7 +216,6 @@ "value": "env.AZURE_API_KEY", "azure_key_config": { "endpoint": "env.AZURE_ENDPOINT", - "api_version": "env.AZURE_API_VERSION", "deployments": { "gpt-4o": "gpt-4o", "gpt-4o-mini": "gpt-4o-mini", diff --git a/tests/integrations/typescript/config.json b/tests/integrations/typescript/config.json index aaf922097f3..8b967d2c594 100644 --- a/tests/integrations/typescript/config.json +++ b/tests/integrations/typescript/config.json @@ -143,8 +143,7 @@ "name": "Azure OpenAI API Key", "value": "env.AZURE_OPENAI_API_KEY", "azure_key_config": { - "endpoint": "env.AZURE_OPENAI_ENDPOINT", - "api_version": "env.AZURE_OPENAI_API_VERSION" + "endpoint": "env.AZURE_OPENAI_ENDPOINT" }, "weight": 1, "models": ["*"] diff --git a/transports/config.schema.json b/transports/config.schema.json index e994c395452..4d5cd5f3ed6 100644 --- a/transports/config.schema.json +++ b/transports/config.schema.json @@ -2425,6 +2425,10 @@ "type": "array", "items": { "type": "string" }, "description": "OAuth2 scopes for Entra authentication" + }, + "api_version": { + "type": "string", + "description": "Deprecated: Bifrost now uses the Azure OpenAI v1 API which does not require an api-version parameter." } }, "required": ["endpoint"], diff --git a/ui/lib/schemas/providerForm.ts b/ui/lib/schemas/providerForm.ts index 3b8e7273574..c54baf6f694 100644 --- a/ui/lib/schemas/providerForm.ts +++ b/ui/lib/schemas/providerForm.ts @@ -74,7 +74,6 @@ const AllowedRequestsSchema = z.object({ // Key configuration schemas const AzureKeyConfigSchema = z.object({ endpoint: z.string().min(1, "Endpoint is required for Azure keys"), - api_version: z.string().optional(), client_id: z.string().optional(), client_secret: z.string().optional(), tenant_id: z.string().optional(), diff --git a/ui/lib/types/config.ts b/ui/lib/types/config.ts index b9e336e2ef0..99fad2e877b 100644 --- a/ui/lib/types/config.ts +++ b/ui/lib/types/config.ts @@ -23,7 +23,6 @@ export const isKnownProvider = (provider: string): provider is KnownProvider => // AzureKeyConfig matching Go's schemas.AzureKeyConfig export interface AzureKeyConfig { endpoint: EnvVar; - api_version?: EnvVar; client_id?: EnvVar; client_secret?: EnvVar; tenant_id?: EnvVar; @@ -32,7 +31,6 @@ export interface AzureKeyConfig { export const DefaultAzureKeyConfig: AzureKeyConfig = { endpoint: { value: "", env_var: "", from_env: false }, - api_version: { value: "2024-02-01", env_var: "", from_env: false }, client_id: { value: "", env_var: "", from_env: false }, client_secret: { value: "", env_var: "", from_env: false }, tenant_id: { value: "", env_var: "", from_env: false }, diff --git a/ui/lib/types/schemas.ts b/ui/lib/types/schemas.ts index 0022290dcb2..684c721c057 100644 --- a/ui/lib/types/schemas.ts +++ b/ui/lib/types/schemas.ts @@ -79,7 +79,6 @@ export const azureKeyConfigSchema = z .object({ _auth_type: z.enum(["api_key", "entra_id", "default_credential"]).optional(), endpoint: envVarSchema.optional(), - api_version: envVarSchema.optional(), client_id: envVarSchema.optional(), client_secret: envVarSchema.optional(), tenant_id: envVarSchema.optional(),