fix: string type

This commit is contained in:
Joel
2025-04-14 16:33:06 +08:00
parent 9a7e1be35d
commit e9923e8220

View File

@ -18,7 +18,7 @@ export const userInputsFormToPromptVariables = (useInputs: UserInputFormItem[] |
useInputs.forEach((item: any) => {
const [type, content] = (() => {
const type = Object.keys(item)[0]
return [type, item[type]]
return [type === 'text-input' ? 'string' : type, item[type]]
})()
if (type === 'string' || type === 'paragraph' || type === 'file' || type === 'file-list') {