mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +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"]
|
||||
# Format as xx.yK for thousands, xx.yM for millions
|
||||
if budget >= 1000000:
|
||||
formatted_budget = f"{budget/1000000:.1f}M"
|
||||
formatted_budget = f"{budget / 1000000:.1f}M"
|
||||
else:
|
||||
formatted_budget = f"{budget/1000:.1f}K"
|
||||
formatted_budget = f"{budget / 1000:.1f}K"
|
||||
output += f", {formatted_budget} think tokens"
|
||||
|
||||
lines.append(output)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue