minor fix when promptValues is undefined

This commit is contained in:
Henry 2023-07-31 00:08:37 +01:00
parent b5c9345b2b
commit 36d3709371
1 changed files with 1 additions and 1 deletions

View File

@ -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) {