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)
|
const promptValues = handleEscapeCharacters(promptValuesRaw, true)
|
||||||
|
|
||||||
if (inputVariables.length > 0) {
|
if (promptValues && inputVariables.length > 0) {
|
||||||
let seen: string[] = []
|
let seen: string[] = []
|
||||||
|
|
||||||
for (const variable of inputVariables) {
|
for (const variable of inputVariables) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue