From 8bb225bec6f156cecf68ccf0774f89ac2e0bdf18 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 9 Apr 2024 18:33:47 +0800 Subject: [PATCH] fix: number type in app would render as select type in webapp (#3244) --- web/utils/model-config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/utils/model-config.ts b/web/utils/model-config.ts index 949b78109e..d83757aaaa 100644 --- a/web/utils/model-config.ts +++ b/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]