mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 11:45:00 +00:00
fix: Remove double-counting of cached tokens in token calculation
This commit is contained in:
parent
550c8322c4
commit
2e97fcc47f
1 changed files with 0 additions and 1 deletions
|
@ -1603,7 +1603,6 @@ class Coder:
|
||||||
completion.usage, "cache_creation_input_tokens"
|
completion.usage, "cache_creation_input_tokens"
|
||||||
):
|
):
|
||||||
self.message_tokens_sent += prompt_tokens
|
self.message_tokens_sent += prompt_tokens
|
||||||
self.message_tokens_sent += cache_hit_tokens
|
|
||||||
self.message_tokens_sent += cache_write_tokens
|
self.message_tokens_sent += cache_write_tokens
|
||||||
else:
|
else:
|
||||||
self.message_tokens_sent += prompt_tokens
|
self.message_tokens_sent += prompt_tokens
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue