From b331a1405e5788ea54fddcacf1fa3cfc1c620c1f Mon Sep 17 00:00:00 2001 From: Roo Code Date: Sat, 7 Feb 2026 01:15:37 +0000 Subject: [PATCH] fix(azure): coerce empty azureApiKey to undefined for env var fallback --- src/api/providers/azure.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/providers/azure.ts b/src/api/providers/azure.ts index a2b34d4b9e..bac4aac085 100644 --- a/src/api/providers/azure.ts +++ b/src/api/providers/azure.ts @@ -42,7 +42,7 @@ export class AzureHandler extends BaseProvider implements SingleCompletionHandle // /deployments/{id}/{path} URL shape. this.provider = createAzure({ baseURL: options.azureBaseUrl || undefined, - apiKey: options.azureApiKey, // Optional — Azure supports managed identity / Entra ID auth + apiKey: options.azureApiKey || undefined, // Optional — Azure supports managed identity / Entra ID auth apiVersion: options.azureApiVersion ?? azureOpenAiDefaultApiVersion, useDeploymentBasedUrls: true, headers: DEFAULT_HEADERS,