feat: Track total tokens and use in benchmark stats

This commit is contained in:
Paul Gauthier (aider) 2025-05-07 21:08:29 -07:00
parent a98b531bcc
commit 5090f28151
2 changed files with 15 additions and 4 deletions

View file

@ -957,8 +957,8 @@ def run_test_real(
indentation_errors=indentation_errors,
lazy_comments=lazy_comments, # Add the count of pattern matches to the results
reasoning_effort=reasoning_effort,
prompt_tokens=coder.message_tokens_sent,
completion_tokens=coder.message_tokens_received,
prompt_tokens=coder.total_tokens_sent,
completion_tokens=coder.total_tokens_received,
thinking_tokens=thinking_tokens,
chat_hashes=list(
zip(