mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 11:45:00 +00:00
style: Format code with linter and improve whitespace
This commit is contained in:
parent
1fa3bc4018
commit
89174bb524
1 changed files with 5 additions and 3 deletions
|
@ -1414,7 +1414,7 @@ class Commands:
|
||||||
def cmd_think_tokens(self, args):
|
def cmd_think_tokens(self, args):
|
||||||
"Set the thinking token budget (supports formats like 8096, 8k, 10.5k, 0.5M)"
|
"Set the thinking token budget (supports formats like 8096, 8k, 10.5k, 0.5M)"
|
||||||
model = self.coder.main_model
|
model = self.coder.main_model
|
||||||
|
|
||||||
if not args.strip():
|
if not args.strip():
|
||||||
# Display current value if no args are provided
|
# Display current value if no args are provided
|
||||||
formatted_budget = model.get_thinking_tokens(model)
|
formatted_budget = model.get_thinking_tokens(model)
|
||||||
|
@ -1422,7 +1422,9 @@ class Commands:
|
||||||
self.io.tool_output("Thinking tokens are not currently set.")
|
self.io.tool_output("Thinking tokens are not currently set.")
|
||||||
else:
|
else:
|
||||||
budget = model.extra_params["thinking"].get("budget_tokens")
|
budget = model.extra_params["thinking"].get("budget_tokens")
|
||||||
self.io.tool_output(f"Current thinking token budget: {budget:,} tokens ({formatted_budget}).")
|
self.io.tool_output(
|
||||||
|
f"Current thinking token budget: {budget:,} tokens ({formatted_budget})."
|
||||||
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
value = args.strip()
|
value = args.strip()
|
||||||
|
@ -1445,7 +1447,7 @@ class Commands:
|
||||||
def cmd_reasoning_effort(self, args):
|
def cmd_reasoning_effort(self, args):
|
||||||
"Set the reasoning effort level (values: number or low/medium/high depending on model)"
|
"Set the reasoning effort level (values: number or low/medium/high depending on model)"
|
||||||
model = self.coder.main_model
|
model = self.coder.main_model
|
||||||
|
|
||||||
if not args.strip():
|
if not args.strip():
|
||||||
# Display current value if no args are provided
|
# Display current value if no args are provided
|
||||||
reasoning_value = model.get_reasoning_effort(model)
|
reasoning_value = model.get_reasoning_effort(model)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue