{"version":"2.1.333","anchor":"prompt-too-long-token-parsing-hardened","canonical_anchor":"prompt-too-long-token-parsing-hardened","heading":"Better reading of token counts from \"prompt is too long\" errors","tier":"notice","area":"API Errors","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/prompt-too-long-token-parsing-hardened","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Better reading of token counts from \"prompt is too long\" errors\n\nClaude Code can now read the token count and limit from more wordings of the \"prompt is too long\" error\n\n**What**\n\nWhen a request is too large for the model, the API answers with a \"prompt is too long\" error that states how many tokens were sent and what the limit is. Tokens are the small chunks of text the model counts its input in. Claude Code reads those two numbers out of the error text. It now copes with more wordings between the phrase and the numbers, and it will not run on into a second copy of the phrase in the same message.\n\n**Why**\n\nClaude Code uses these numbers to recover when a conversation grows too big. Reading them from more error formats means that recovery works in more cases.\n\n- Area: API Errors\n- Tier: You'll notice\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}