mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-25 20:54:07 -08:00
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:
parent
a3e9e3db62
commit
82f66c87e0
|
@ -504,7 +504,7 @@ export class ChainLlm implements INodeType {
|
||||||
|
|
||||||
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
||||||
let prompt: string;
|
let prompt: string;
|
||||||
if (this.getNode().typeVersion <= 1.2) {
|
if (this.getNode().typeVersion <= 1.3) {
|
||||||
prompt = this.getNodeParameter('prompt', itemIndex) as string;
|
prompt = this.getNodeParameter('prompt', itemIndex) as string;
|
||||||
} else {
|
} else {
|
||||||
prompt = getPromptInputByType({
|
prompt = getPromptInputByType({
|
||||||
|
|
Loading…
Reference in a new issue