Skip to content

Commit

Permalink
fix(Basic LLM Chain Node): Fix retrieving of prompt parameter for v1.…
Browse files Browse the repository at this point in the history
…3 of the node (n8n-io#8817)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
  • Loading branch information
OlegIvaniv authored Mar 5, 2024
1 parent a3e9e3d commit 82f66c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 82f66c8

Please sign in to comment.