mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
style: Add whitespace around arithmetic operators in budget formatting
This commit is contained in:
parent
c38cdef220
commit
444a95bc6c
1 changed files with 2 additions and 2 deletions
|
@ -221,9 +221,9 @@ class Coder:
|
||||||
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:
|
||||||
formatted_budget = f"{budget/1000000:.1f}M"
|
formatted_budget = f"{budget / 1000000:.1f}M"
|
||||||
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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue