Merge pull request #660 from FlowiseAI/bugfix/PromptChaining

Bugfix/LLMChain PromptValues Undefined
This commit is contained in:
Henry Heng
2023-07-31 01:53:25 +01:00
committed by GitHub
@@ -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) {