Skip to content

Commit

Permalink
Azure OpenAI Embeddings ignores env variable AZURE_OPENAI_BASE_PATH (F…
Browse files Browse the repository at this point in the history
…lowiseAI#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
  • Loading branch information
akoo24 authored Nov 7, 2024
1 parent 99f28a2 commit a6183ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class AzureOpenAIEmbedding_Embeddings implements INode {
azureOpenAIApiInstanceName,
azureOpenAIApiDeploymentName,
azureOpenAIApiVersion,
azureOpenAIBasePath: basePath
azureOpenAIBasePath: basePath || undefined
}

if (batchSize) obj.batchSize = parseInt(batchSize, 10)
Expand Down

0 comments on commit a6183ab

Please sign in to comment.