minor fix when promptValues is undefined
This commit is contained in:
parent
b5c9345b2b
commit
36d3709371
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue