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,