瀏覽代碼

fix: number type in app would render as select type in webapp (#3244)

tags/0.6.1
Joel 1 年之前
父節點
當前提交
8bb225bec6
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 3 行新增0 行删除
  1. 3
    0
      web/utils/model-config.ts

+ 3
- 0
web/utils/model-config.ts 查看文件

@@ -15,6 +15,9 @@ export const userInputsFormToPromptVariables = (useInputs: UserInputFormItem[] |
if (item['text-input'])
return ['string', item['text-input']]

if (item.number)
return ['number', item.number]

if (item.external_data_tool)
return [item.external_data_tool.type, item.external_data_tool]


Loading…
取消
儲存