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++) {
|
||||
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({
|
||||
|
|
Loading…
Reference in a new issue