Add session cost to usage report

This commit is contained in:
Paul Gauthier 2024-07-28 16:05:57 -03:00 committed by Paul Gauthier (aider)
parent 16cbb0e112
commit fbc387e16e

View file

@ -1260,7 +1260,7 @@ class Coder:
tokens += f", ${cost:.6f} cost"
self.total_cost += cost
self.usage_report = f"{tokens}, total cost: ${self.total_cost:.6f}"
self.usage_report = f"{tokens}, session cost: ${self.total_cost:.6f}"
def get_multi_response_content(self, final=False):
cur = self.multi_response_content