fix(Basic LLM Chain Node): Fix retrieving of prompt parameter for v1.3 of the node (#8817)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
oleg 2024-03-05 17:43:24 +01:00 committed by GitHub
parent a3e9e3db62
commit 82f66c87e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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({