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:
parent
99f28a2dff
commit
a6183aba7a
|
|
@ -78,7 +78,7 @@ class AzureOpenAIEmbedding_Embeddings implements INode {
|
|||
azureOpenAIApiInstanceName,
|
||||
azureOpenAIApiDeploymentName,
|
||||
azureOpenAIApiVersion,
|
||||
azureOpenAIBasePath: basePath
|
||||
azureOpenAIBasePath: basePath || undefined
|
||||
}
|
||||
|
||||
if (batchSize) obj.batchSize = parseInt(batchSize, 10)
|
||||
|
|
|
|||
Loading…
Reference in New Issue