Skip to content

Commit f9208d2

Browse files
committed
fix: azure model configured always false
1 parent df91d48 commit f9208d2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

helpers/providers/azure.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,7 @@ export async function askAzureQuestions({
6262
embeddingModel: DEFAULT_EMBEDDING_MODEL,
6363
dimensions: getDimensions(DEFAULT_EMBEDDING_MODEL),
6464
isConfigured(): boolean {
65-
if (config.apiKey) {
66-
return true;
67-
}
68-
if (process.env["AZURE_OPENAI_KEY"]) {
69-
return true;
70-
}
65+
// the Azure model provider can't be fully configured as endpoint and deployment names have to be configured with env variables
7166
return false;
7267
},
7368
};

0 commit comments

Comments
 (0)