mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2025-12-24 08:36:39 +08:00
chore: can use setting config
This commit is contained in:
@ -21,7 +21,7 @@ export const userInputsFormToPromptVariables = (useInputs: UserInputFormItem[] |
|
||||
return [type === 'text-input' ? 'string' : type, item[type]]
|
||||
})()
|
||||
|
||||
if (type === 'string' || type === 'paragraph' || type === 'file' || type === 'file-list') {
|
||||
if (type === 'string' || type === 'paragraph') {
|
||||
promptVariables.push({
|
||||
key: content.variable,
|
||||
name: content.label,
|
||||
@ -40,6 +40,17 @@ export const userInputsFormToPromptVariables = (useInputs: UserInputFormItem[] |
|
||||
options: [],
|
||||
})
|
||||
}
|
||||
else if (type === 'file' || type === 'file-list') {
|
||||
promptVariables.push({
|
||||
...content,
|
||||
key: content.variable,
|
||||
name: content.label,
|
||||
required: content.required,
|
||||
type,
|
||||
max_length: content.max_length,
|
||||
options: [],
|
||||
})
|
||||
}
|
||||
else {
|
||||
promptVariables.push({
|
||||
key: content.variable,
|
||||
|
||||
Reference in New Issue
Block a user