From f256c6df247ebdb4f616718a9263de9d6e282e8e Mon Sep 17 00:00:00 2001 From: oleg Date: Fri, 2 Feb 2024 12:27:13 +0100 Subject: [PATCH] fix(Embeddings OpenAI Node): Fix dynamic models fetching (#8533) Signed-off-by: Oleg Ivaniv --- .../embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/@n8n/nodes-langchain/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.ts b/packages/@n8n/nodes-langchain/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.ts index edc4a48679557..eddacc2f1e3fa 100644 --- a/packages/@n8n/nodes-langchain/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.ts @@ -103,6 +103,11 @@ export class EmbeddingsOpenAi implements INodeType { // eslint-disable-next-line n8n-nodes-base/node-class-description-outputs-wrong outputs: [NodeConnectionType.AiEmbedding], outputNames: ['Embeddings'], + requestDefaults: { + ignoreHttpStatusErrors: true, + baseURL: + '={{ $parameter.options?.baseURL?.split("/").slice(0,-1).join("/") || "https://api.openai.com" }}', + }, properties: [ getConnectionHintNoticeField([NodeConnectionType.AiVectorStore]), {