{"version":"2.1.304","anchor":"counttokens-failures-are-now-reported","canonical_anchor":"counttokens-failures-are-now-reported","heading":"Failed token-count requests are now reported","tier":"internal","area":"API","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.304\/e\/counttokens-failures-are-now-reported","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.304","markdown":"### Failed token-count requests are now reported\n\nWhen a request to count tokens fails, Claude Code now reports the failure before trying its fallback for gateways that do not support it\n\n**What**\n\nClaude Code sometimes asks the API to count tokens, the small chunks that text is measured in. When that request fails, Claude Code now reports the failure first, and then goes on to its existing fallback for gateways that answer that token counting is not supported.\n\n**Why**\n\nThe failure is now likely recorded for diagnosing problems instead of passing unnoticed.\n\n- Area: API\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}