Skip to content

Conversation

@RogerHYang
Copy link
Contributor

@RogerHYang RogerHYang commented Nov 10, 2025

resolves #2414 (comment)


Note

Adds support for Anthropic input_tokens and output_tokens when extracting prompt and completion token counts.

  • LLM token parsing:
    • Recognizes Anthropic-specific keys in token_usage:
      • Maps input_tokens to LLM_TOKEN_COUNT_PROMPT.
      • Maps output_tokens to LLM_TOKEN_COUNT_COMPLETION.

Written by Cursor Bugbot for commit bec7a56. This will update automatically on new commits. Configure here.

@RogerHYang RogerHYang requested a review from a team as a code owner November 10, 2025 21:25
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Nov 10, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 10, 2025
@RogerHYang RogerHYang merged commit 698dc81 into main Nov 10, 2025
15 checks passed
@RogerHYang RogerHYang deleted the fix-anthropic-bug branch November 10, 2025 21:40
@github-actions github-actions bot mentioned this pull request Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants