utils/model-config.ts
@@ -109,7 +109,10 @@ export const promptVariablesToUserInputsForm = (promptVariables: PromptVariable[]) => { const userInputs: UserInputFormItem[] = [] promptVariables.filter(({ key, name }) => { return key && key.trim() && name && name.trim() if (key && key.trim() && name && name.trim()) return true return false }).forEach((item: any) => { if (item.type === 'string' || item.type === 'paragraph') { userInputs.push({