mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 19:24:59 +00:00
style: Apply linter formatting to commands.py
This commit is contained in:
parent
703e124277
commit
2d623ff196
1 changed files with 3 additions and 3 deletions
|
@ -1416,18 +1416,18 @@ class Commands:
|
||||||
if not args.strip():
|
if not args.strip():
|
||||||
self.io.tool_error("Please specify a token budget (e.g., 8k, 10k, 0.5M).")
|
self.io.tool_error("Please specify a token budget (e.g., 8k, 10k, 0.5M).")
|
||||||
return
|
return
|
||||||
|
|
||||||
value = args.strip()
|
value = args.strip()
|
||||||
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
|
# Try to display the actual value that was set
|
||||||
if model.extra_params and "thinking" in model.extra_params:
|
if model.extra_params and "thinking" in model.extra_params:
|
||||||
budget = model.extra_params["thinking"].get("budget_tokens")
|
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.")
|
||||||
else:
|
else:
|
||||||
self.io.tool_output(f"Set thinking token budget to {value}.")
|
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