Skip to content

Conversation

@stephentoub
Copy link
Contributor

  • InputTokenCount needs to reflect cached tokens.
  • Only add to AdditionalCounts for positive counts.
  • Added reporting of WebFetch/SearchRequests.

@stephentoub stephentoub requested a review from a team as a code owner December 10, 2025 15:25
@sd-st
Copy link
Collaborator

sd-st commented Dec 10, 2025

@stephentoub failing lint FYI

@sd-st
Copy link
Collaborator

sd-st commented Dec 11, 2025

@stephentoub still failing unfortunately

- InputTokenCount needs to reflect cached tokens.
- Only add to AdditionalCounts for positive counts.
- Added reporting of WebFetch/SearchRequests.
@stephentoub
Copy link
Contributor Author

grrrrrrrrrrrrr.... updated

@sd-st sd-st merged commit 302d8e7 into anthropics:next Dec 11, 2025
3 checks passed
stainless-app bot pushed a commit that referenced this pull request Dec 16, 2025
* Improve reporting of token counts in UsageDetails

- InputTokenCount needs to reflect cached tokens.
- Only add to AdditionalCounts for positive counts.
- Added reporting of WebFetch/SearchRequests.

* lint

* lint take 2
@stephentoub stephentoub deleted the fixtokens branch December 17, 2025 16:49
felixfbecker pushed a commit that referenced this pull request Dec 18, 2025
* Improve reporting of token counts in UsageDetails

- InputTokenCount needs to reflect cached tokens.
- Only add to AdditionalCounts for positive counts.
- Added reporting of WebFetch/SearchRequests.

* lint

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants