Skip to content

fix: udpate anthropic token usage#1550

Merged
aabchoo merged 8 commits intoenvoyproxy:mainfrom
alexagriffith:alexagriffith/udpate-anthropic-token-usage
Nov 20, 2025
Merged

fix: udpate anthropic token usage#1550
aabchoo merged 8 commits intoenvoyproxy:mainfrom
alexagriffith:alexagriffith/udpate-anthropic-token-usage

Conversation

@alexagriffith
Copy link
Copy Markdown
Contributor

Description
update anthropic -> translation code to correctly translate token usage

Signed-off-by: Alexa Griffith <agriffith50@bloomberg.net>
Signed-off-by: Alexa Griffith <agriffith50@bloomberg.net>
@alexagriffith alexagriffith requested a review from a team as a code owner November 19, 2025 19:58
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Nov 19, 2025
Signed-off-by: Alexa Griffith <agriffith50@bloomberg.net>
Signed-off-by: Alexa Griffith <agriffith50@bloomberg.net>
Signed-off-by: Alexa Griffith <agriffith50@bloomberg.net>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Nov 19, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.16%. Comparing base (eb7ded6) to head (d17de4e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1550      +/-   ##
==========================================
+ Coverage   84.14%   84.16%   +0.02%     
==========================================
  Files         149      150       +1     
  Lines       12971    12984      +13     
==========================================
+ Hits        10914    10928      +14     
+ Misses       1436     1434       -2     
- Partials      621      622       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Signed-off-by: Alexa Griffith <agriffith50@bloomberg.net>
@alexagriffith
Copy link
Copy Markdown
Contributor Author

/retest

Signed-off-by: Alexa Griffith <agriffith50@bloomberg.net>
@alexagriffith
Copy link
Copy Markdown
Contributor Author

/retest

Signed-off-by: Alexa Griffith <agriffith50@bloomberg.net>
@aabchoo aabchoo merged commit bbc2aa3 into envoyproxy:main Nov 20, 2025
30 checks passed
@alexagriffith alexagriffith deleted the alexagriffith/udpate-anthropic-token-usage branch November 20, 2025 16:49
hustxiayang pushed a commit to hustxiayang/ai-gateway that referenced this pull request Nov 21, 2025
**Description**
update anthropic -> translation code to correctly translate token usage

---------

Signed-off-by: Alexa Griffith <agriffith50@bloomberg.net>
Signed-off-by: yxia216 <yxia216@bloomberg.net>
missBerg pushed a commit to missBerg/ai-gateway that referenced this pull request Dec 20, 2025
**Description**
update anthropic -> translation code to correctly translate token usage

---------

Signed-off-by: Alexa Griffith <agriffith50@bloomberg.net>
Signed-off-by: Erica Hughberg <erica.sundberg.90@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants