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 (#8817)

Signed-off-by: Oleg Ivaniv <[email protected]>
  • Loading branch information
OlegIvaniv authored and netroy committed Mar 6, 2024
1 parent a5f52f4 commit b5ffb7d
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 b5ffb7d

Please sign in to comment.