Under the hoodTier: how much it should matter to you
1Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
SDKArea: what it touches
Internal ChangesKind: in v2.1.282,
Internal ChangesSection of the release
What
Claude Code can ask the API how many tokens a message would use, through /v1/messages/count_tokens. Tokens are the units of text the model reads. That request now uses a custom fetch function from the client's configuration when one is set, instead of always using the default. A fetch function is the code that sends web requests.
Why
When a custom fetch is configured, token counting can follow the same route as other requests, such as through a proxy or an authentication wrapper.
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtWhere the custom fetch function comes from, and so which setups are affected, is not settled.