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

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

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

1 participant