mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 14:25:00 +00:00
Add commas to token numbers in usage_report
This commit is contained in:
parent
fbc387e16e
commit
e63a2947c6
1 changed files with 1 additions and 1 deletions
|
@ -1252,7 +1252,7 @@ class Coder:
|
|||
prompt_tokens = self.main_model.token_count(messages)
|
||||
completion_tokens = self.main_model.token_count(self.partial_response_content)
|
||||
|
||||
tokens = f"{prompt_tokens} prompt tokens, {completion_tokens} completion tokens"
|
||||
tokens = f"{prompt_tokens:,} prompt tokens, {completion_tokens:,} completion tokens"
|
||||
if self.main_model.info.get("input_cost_per_token"):
|
||||
cost += prompt_tokens * self.main_model.info.get("input_cost_per_token")
|
||||
if self.main_model.info.get("output_cost_per_token"):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue