From e795d507ece3dccacf9d25fea8635700ee4135bb Mon Sep 17 00:00:00 2001 From: "bobo.yang" Date: Mon, 18 Dec 2023 21:03:21 +0800 Subject: [PATCH] Refactor ui_group function to format ui_message as a chatmark form --- libs/ui_utils/group.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/ui_utils/group.py b/libs/ui_utils/group.py index 927619c..6183fb8 100644 --- a/libs/ui_utils/group.py +++ b/libs/ui_utils/group.py @@ -17,8 +17,10 @@ def ui_group(ui_message: List[Tuple]) -> Tuple: items in ui_message are created by functions like:make_checkbox_control """ - ui_message = "\n".join([m[1] for m in ui_message]) - response = pipe_interaction(ui_message) + ui_message_str = "\n".join([m[1] for m in ui_message]) + + ui_message_str = f"""```chatmark type=form\n{ui_message_str}\n```\n""" + response = pipe_interaction(ui_message_str) results = [] for m in ui_message: