mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +00:00
refactor: Simplify thinking token budget display logic
This commit is contained in:
parent
2d623ff196
commit
98b3722a02
1 changed files with 2 additions and 6 deletions
|
@ -1421,12 +1421,8 @@ class Commands:
|
||||||
model = self.coder.main_model
|
model = self.coder.main_model
|
||||||
model.set_thinking_tokens(value)
|
model.set_thinking_tokens(value)
|
||||||
|
|
||||||
# Try to display the actual value that was set
|
budget = model.extra_params["thinking"].get("budget_tokens")
|
||||||
if model.extra_params and "thinking" in model.extra_params:
|
self.io.tool_output(f"Set thinking token budget to {budget:,} tokens.")
|
||||||
budget = model.extra_params["thinking"].get("budget_tokens")
|
|
||||||
self.io.tool_output(f"Set thinking token budget to {budget:,} tokens.")
|
|
||||||
else:
|
|
||||||
self.io.tool_output(f"Set thinking token budget to {value}.")
|
|
||||||
|
|
||||||
def cmd_copy_context(self, args=None):
|
def cmd_copy_context(self, args=None):
|
||||||
"""Copy the current chat context as markdown, suitable to paste into a web UI"""
|
"""Copy the current chat context as markdown, suitable to paste into a web UI"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue