From 354a8ac3aaa14d2090745d7228cc2250a28c7a9f Mon Sep 17 00:00:00 2001 From: Fangyin Cheng Date: Mon, 19 Aug 2024 07:42:11 +0800 Subject: [PATCH] fix(core): Fix upload ui component attr error --- dbgpt/core/awel/flow/ui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dbgpt/core/awel/flow/ui.py b/dbgpt/core/awel/flow/ui.py index 7fd2a4ba4..928755a20 100644 --- a/dbgpt/core/awel/flow/ui.py +++ b/dbgpt/core/awel/flow/ui.py @@ -367,7 +367,10 @@ class UIUpload(UIComponent): ) ui_type: Literal["upload"] = Field("upload", frozen=True) - + attr: Optional[UIAttribute] = Field( + None, + description="The attributes of the component", + ) max_file_size: Optional[int] = Field( None, description="The maximum size of the file, in bytes",