add fix for passing json variable

This commit is contained in:
Henry
2024-01-05 02:46:36 +00:00
parent d9136998c4
commit 8cb9393862
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)
}
}