Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

Joel8bb225bec6f1
diff --git a/web/utils/model-config.ts b/web/utils/model-config.ts
index 949b78109ed..d83757aaaa4 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]