What probably matters to youSection of the release
What
The hook API's $.model.complete previously rejected any maxTokens value above a single hardcoded limit of 8192, regardless of which model was being used. It now looks up the actual output ceiling for the specific model being called (still capped globally at a larger number) and rejects requests that exceed it with 'maxTokens ${s} is past what ${w} can produce in one reply (${O})'.
Why
Models that can produce longer replies than 8192 tokens are no longer artificially capped, while models with smaller limits are still protected from requesting more than they can actually return.
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Added sinceA small documentation edit on java touched a line naming maxTokens after this was published.Avoid setting a large `maxTokens` value without using streaming. Some networks may drop idle connections after a certain period of time, which can cause the request to fail or [time out](https://platform.claude.com/docs/en/cli-sdks-librari…cli-sdks-libraries/sdks/javasee the edit