From 582168ac2123a7d29be5323277b337fe92c65005 Mon Sep 17 00:00:00 2001 From: chen <547601229@qq.com> Date: Sun, 2 Aug 2026 02:58:43 +0800 Subject: [PATCH] feat: add max reasoning effort option Expose the backend-supported max reasoning level in the /effort picker and document its protocol mappings. Co-Authored-By: GenericAgent --- frontends/model_cmd.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontends/model_cmd.py b/frontends/model_cmd.py index 5f9f098c..177d1865 100644 --- a/frontends/model_cmd.py +++ b/frontends/model_cmd.py @@ -71,10 +71,10 @@ def set_model(agent, model: str, sub: Optional[int] = None) -> str: # GA 配置层允许的全部档位(llmcore BaseSession._enum)。各协议的真实支持面不同: -# Claude(output_config.effort) 只认 low/medium/high + xhigh→max, none/minimal -# 会被 _apply_claude_thinking 打 WARN 忽略; OpenAI 系(reasoning_effort / -# reasoning.effort) 原样透传, 由渠道端校验。 -EFFORT_LEVELS = ['none', 'minimal', 'low', 'medium', 'high', 'xhigh'] +# Claude(output_config.effort) 只认 low/medium/high + xhigh/max→max, +# none/minimal 会被 _apply_claude_thinking 打 WARN 忽略; OpenAI 系 +# (reasoning_effort / reasoning.effort) 原样透传, 由渠道端校验。 +EFFORT_LEVELS = ['none', 'minimal', 'low', 'medium', 'high', 'xhigh', 'max'] def _protocols(agent) -> set: