Skip to content

Commit a6183ab

Browse files
authored
Azure OpenAI Embeddings ignores env variable AZURE_OPENAI_BASE_PATH (#3452)
* Set azureOpenAIBasePath to undefined if empty to enforce usage of env variable AZURE_OPENAI_BASE_PATH in @langchain[email protected][email protected][email protected]/node_modules/@langchain/openai/dist/embeddings.cjs
1 parent 99f28a2 commit a6183ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/components/nodes/embeddings/AzureOpenAIEmbedding/AzureOpenAIEmbedding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class AzureOpenAIEmbedding_Embeddings implements INode {
7878
azureOpenAIApiInstanceName,
7979
azureOpenAIApiDeploymentName,
8080
azureOpenAIApiVersion,
81-
azureOpenAIBasePath: basePath
81+
azureOpenAIBasePath: basePath || undefined
8282
}
8383

8484
if (batchSize) obj.batchSize = parseInt(batchSize, 10)

0 commit comments

Comments
 (0)