Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions docs/openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 0 additions & 3 deletions docs/openapi/schemas/management/governance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions examples/configs/withprompushgateway/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
3 changes: 0 additions & 3 deletions examples/configs/withvirtualkeys/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand All @@ -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": [
Expand All @@ -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": [
Expand Down
3 changes: 1 addition & 2 deletions tests/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion tests/integrations/python/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 1 addition & 2 deletions tests/integrations/typescript/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": ["*"]
Expand Down
4 changes: 4 additions & 0 deletions transports/config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Comment thread
TejasGhatte marked this conversation as resolved.
Resolved
}
},
"required": ["endpoint"],
Expand Down
1 change: 0 additions & 1 deletion ui/lib/schemas/providerForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
2 changes: 0 additions & 2 deletions ui/lib/types/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 },
Expand Down
1 change: 0 additions & 1 deletion ui/lib/types/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down
Loading