mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-03 03:05:00 +00:00
style: Format code with linter and improve readability
This commit is contained in:
parent
5608db0892
commit
c38cdef220
1 changed files with 7 additions and 5 deletions
|
@ -211,11 +211,13 @@ class Coder:
|
||||||
output += ", prompt cache"
|
output += ", prompt cache"
|
||||||
if main_model.info.get("supports_assistant_prefill"):
|
if main_model.info.get("supports_assistant_prefill"):
|
||||||
output += ", infinite output"
|
output += ", infinite output"
|
||||||
|
|
||||||
# Check for thinking token budget
|
# Check for thinking token budget
|
||||||
if (main_model.extra_params and
|
if (
|
||||||
"thinking" in main_model.extra_params and
|
main_model.extra_params
|
||||||
"budget_tokens" in main_model.extra_params["thinking"]):
|
and "thinking" in main_model.extra_params
|
||||||
|
and "budget_tokens" in main_model.extra_params["thinking"]
|
||||||
|
):
|
||||||
budget = main_model.extra_params["thinking"]["budget_tokens"]
|
budget = main_model.extra_params["thinking"]["budget_tokens"]
|
||||||
# Format as xx.yK for thousands, xx.yM for millions
|
# Format as xx.yK for thousands, xx.yM for millions
|
||||||
if budget >= 1000000:
|
if budget >= 1000000:
|
||||||
|
@ -223,7 +225,7 @@ class Coder:
|
||||||
else:
|
else:
|
||||||
formatted_budget = f"{budget/1000:.1f}K"
|
formatted_budget = f"{budget/1000:.1f}K"
|
||||||
output += f", {formatted_budget} think tokens"
|
output += f", {formatted_budget} think tokens"
|
||||||
|
|
||||||
lines.append(output)
|
lines.append(output)
|
||||||
|
|
||||||
if self.edit_format == "architect":
|
if self.edit_format == "architect":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue