Merge pull request #1483 from FlowiseAI/bugfix/Pass-JSON-Variable-Value

Bugfix/Pass Json Variable Value
This commit is contained in:
Henry Heng
2024-01-08 13:13:00 +00:00
committed by GitHub
3 changed files with 11 additions and 3 deletions
@@ -65,7 +65,7 @@ class CustomFunction_Utilities implements INode {
inputVars =
typeof functionInputVariablesRaw === 'object' ? functionInputVariablesRaw : JSON.parse(functionInputVariablesRaw)
} catch (exception) {
throw new Error("Invalid JSON in the PromptTemplate's promptValues: " + exception)
throw new Error('Invalid JSON in the Custom Function Input Variables: ' + exception)
}
}