fix: Add whitespace around arithmetic operators in format_tokens function

This commit is contained in:
Paul Gauthier (aider) 2024-08-20 09:36:23 -07:00
parent 93fe9007f0
commit 08fe37a684

View file

@ -1506,9 +1506,9 @@ class Coder:
if count < 1000:
return f"{count}"
elif count < 10000:
return f"{count/1000:.1f}k"
return f"{count / 1000:.1f}k"
else:
return f"{count//1000}k"
return f"{count // 1000}k"
tokens_report = f"Tokens: {format_tokens(self.message_tokens_sent)} sent"