From 1313cd8216a52759a4d5d78b4cb271bc38519230 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Tue, 11 Mar 2025 12:11:08 -0700 Subject: [PATCH] refactor: Update thinking tokens and reasoning effort display with helper methods --- aider/commands.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aider/commands.py b/aider/commands.py index 4b3baa9fa..577759513 100644 --- a/aider/commands.py +++ b/aider/commands.py @@ -1421,9 +1421,10 @@ class Commands: model = self.coder.main_model model.set_thinking_tokens(value) + formatted_budget = model.get_thinking_tokens(model) budget = model.extra_params["thinking"].get("budget_tokens") - self.io.tool_output(f"Set thinking token budget to {budget:,} tokens.") + self.io.tool_output(f"Set thinking token budget to {budget:,} tokens ({formatted_budget}).") self.io.tool_output() # Output announcements @@ -1445,7 +1446,8 @@ class Commands: value = args.strip() model = self.coder.main_model model.set_reasoning_effort(value) - self.io.tool_output(f"Set reasoning effort to {value}") + reasoning_value = model.get_reasoning_effort(model) + self.io.tool_output(f"Set reasoning effort to {reasoning_value}") self.io.tool_output() # Output announcements