From f2b56b8f405f258b3777d7a2ca4ee6ede7d416da Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 25 Apr 2026 11:35:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20ask=5Fuser=5Fchoice.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/agent/tools/impl/ask_user_choice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/agent/tools/impl/ask_user_choice.py b/app/agent/tools/impl/ask_user_choice.py index da1c02b9..c021ffd3 100644 --- a/app/agent/tools/impl/ask_user_choice.py +++ b/app/agent/tools/impl/ask_user_choice.py @@ -106,7 +106,7 @@ class AskUserChoiceTool(MoviePilotTool): ): return f"当前渠道 {channel.value} 不支持按钮选择" - max_per_row = ChannelCapabilityManager.get_max_buttons_per_row(channel) + max_per_row = min(ChannelCapabilityManager.get_max_buttons_per_row(channel), 2) max_rows = ChannelCapabilityManager.get_max_button_rows(channel) max_text_length = ChannelCapabilityManager.get_max_button_text_length(channel) max_options = max_per_row * max_rows