From 82f66c87e0e6969535559aaa879fe1f66c6ff31f Mon Sep 17 00:00:00 2001 From: oleg Date: Tue, 5 Mar 2024 17:43:24 +0100 Subject: [PATCH] fix(Basic LLM Chain Node): Fix retrieving of prompt parameter for v1.3 of the node (#8817) Signed-off-by: Oleg Ivaniv --- .../@n8n/nodes-langchain/nodes/chains/ChainLLM/ChainLlm.node.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@n8n/nodes-langchain/nodes/chains/ChainLLM/ChainLlm.node.ts b/packages/@n8n/nodes-langchain/nodes/chains/ChainLLM/ChainLlm.node.ts index d01f62b5370e4..c23dc97cce462 100644 --- a/packages/@n8n/nodes-langchain/nodes/chains/ChainLLM/ChainLlm.node.ts +++ b/packages/@n8n/nodes-langchain/nodes/chains/ChainLLM/ChainLlm.node.ts @@ -504,7 +504,7 @@ export class ChainLlm implements INodeType { for (let itemIndex = 0; itemIndex < items.length; itemIndex++) { let prompt: string; - if (this.getNode().typeVersion <= 1.2) { + if (this.getNode().typeVersion <= 1.3) { prompt = this.getNodeParameter('prompt', itemIndex) as string; } else { prompt = getPromptInputByType({