Repository navigation
@tanstack/ai-claude-code@0.8.0
·
168 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Minor Changes
-
#1677
f562eac-usage.promptTokensis now the total input on the Anthropic, Bedrock Converse, and Claude Code adapters. It is the uncached tokens plus the cache reads plus the cache writes. Before, it was the uncached tokens only.totalTokensnow uses the newpromptTokens. The cache parts stay inpromptTokensDetails.cachedTokensandpromptTokensDetails.cacheWriteTokens. Other adapters already reportpromptTokensthis way.Breaking: if your code adds
cachedTokensorcacheWriteTokenstopromptTokensto get the total input, it now counts the cache two times. UsepromptTokensas the total. To get the uncached tokens, subtractcachedTokensandcacheWriteTokensfrompromptTokens.