mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
style: Format cost report for better readability
This commit is contained in:
parent
8cb59902a8
commit
74e85d558f
1 changed files with 2 additions and 1 deletions
|
@ -1408,7 +1408,8 @@ class Coder:
|
|||
return f"{value:.{max(2, 2 - int(math.log10(magnitude)))}f}"
|
||||
|
||||
cost_report = (
|
||||
f" Cost: ${format_cost(self.message_cost)} message, ${format_cost(self.total_cost)} session."
|
||||
f" Cost: ${format_cost(self.message_cost)} message,"
|
||||
f" ${format_cost(self.total_cost)} session."
|
||||
)
|
||||
self.usage_report = tokens_report + cost_report
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue