Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit b331a14

Browse files
roomotehannesrudolph
authored andcommitted
fix(azure): coerce empty azureApiKey to undefined for env var fallback
1 parent f66fbff commit b331a14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/providers/azure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class AzureHandler extends BaseProvider implements SingleCompletionHandle
4242
// /deployments/{id}/{path} URL shape.
4343
this.provider = createAzure({
4444
baseURL: options.azureBaseUrl || undefined,
45-
apiKey: options.azureApiKey, // Optional — Azure supports managed identity / Entra ID auth
45+
apiKey: options.azureApiKey || undefined, // Optional — Azure supports managed identity / Entra ID auth
4646
apiVersion: options.azureApiVersion ?? azureOpenAiDefaultApiVersion,
4747
useDeploymentBasedUrls: true,
4848
headers: DEFAULT_HEADERS,

0 commit comments

Comments
 (0)