mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: Round token counts properly for large numbers
This commit is contained in:
parent
08fe37a684
commit
455487e5a9
1 changed files with 1 additions and 1 deletions
|
@ -1508,7 +1508,7 @@ class Coder:
|
|||
elif count < 10000:
|
||||
return f"{count / 1000:.1f}k"
|
||||
else:
|
||||
return f"{count // 1000}k"
|
||||
return f"{round(count / 1000)}k"
|
||||
|
||||
tokens_report = f"Tokens: {format_tokens(self.message_tokens_sent)} sent"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue