wwf
3 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
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({