Skip to content

Conversation

@sestinj
Copy link
Contributor

@sestinj sestinj commented Oct 13, 2025

Description

feat: report cache write tokens from anthropic oai adapter


Summary by cubic

Add cache write and read token reporting to the Anthropic OpenAI adapter for more accurate usage metrics.

  • New Features
    • Added prompt_tokens_details.cache_write_tokens from usage.cache_creation_input_tokens.
    • Added prompt_tokens_details.cache_read_tokens (keeps cached_tokens for backward compatibility).

@sestinj sestinj requested a review from a team as a code owner October 13, 2025 03:12
@sestinj sestinj requested review from RomneyDa and removed request for a team October 13, 2025 03:12
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Oct 13, 2025
Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@sestinj sestinj merged commit c297e44 into main Oct 17, 2025
56 of 58 checks passed
@sestinj sestinj deleted the nate/cache-anthropic-reporting branch October 17, 2025 16:37
@github-project-automation github-project-automation bot moved this from Todo to Done in Issues and PRs Oct 17, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Oct 17, 2025
@github-actions github-actions bot added the tier 2 Important feature that adds new capabilities to the platform or improves critical user journeys label Oct 17, 2025
@sestinj
Copy link
Contributor Author

sestinj commented Oct 17, 2025

🎉 This PR is included in version 1.26.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor Author

sestinj commented Oct 17, 2025

🎉 This PR is included in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor Author

sestinj commented Oct 21, 2025

🎉 This PR is included in version 1.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@sestinj
Copy link
Contributor Author

sestinj commented Oct 22, 2025

🎉 This PR is included in version 1.30.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

released size:XS This PR changes 0-9 lines, ignoring generated files. tier 2 Important feature that adds new capabilities to the platform or improves critical user journeys

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants