mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +03:00
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:
@@ -78,7 +78,7 @@ class AzureOpenAIEmbedding_Embeddings implements INode {
|
||||
azureOpenAIApiInstanceName,
|
||||
azureOpenAIApiDeploymentName,
|
||||
azureOpenAIApiVersion,
|
||||
azureOpenAIBasePath: basePath
|
||||
azureOpenAIBasePath: basePath || undefined
|
||||
}
|
||||
|
||||
if (batchSize) obj.batchSize = parseInt(batchSize, 10)
|
||||
|
||||
Reference in New Issue
Block a user