Skip to content

Commit

Permalink
Merge pull request #660 from FlowiseAI/bugfix/PromptChaining
Browse files Browse the repository at this point in the history
Bugfix/LLMChain PromptValues Undefined
  • Loading branch information
HenryHengZJ authored Jul 31, 2023
2 parents 7a62d14 + 36d3709 commit 7c45961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/nodes/chains/LLMChain/LLMChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const runPrediction = async (
*/
const promptValues = handleEscapeCharacters(promptValuesRaw, true)

if (inputVariables.length > 0) {
if (promptValues && inputVariables.length > 0) {
let seen: string[] = []

for (const variable of inputVariables) {
Expand Down

0 comments on commit 7c45961

Please # to comment.