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+openai@0.0.30_encoding@0.1.13_langchain@0.2.11/node_modules/@langchain/openai/dist/embeddings.cjs
This commit is contained in:
akoo24 2024-11-07 20:04:37 +01:00 committed by GitHub
parent 99f28a2dff
commit a6183aba7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ class AzureOpenAIEmbedding_Embeddings implements INode {
azureOpenAIApiInstanceName,
azureOpenAIApiDeploymentName,
azureOpenAIApiVersion,
azureOpenAIBasePath: basePath
azureOpenAIBasePath: basePath || undefined
}
if (batchSize) obj.batchSize = parseInt(batchSize, 10)