$.model.complete's maxTokens limit now matches each model's real output ceiling instead of one fixed number
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})'.
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.
.maxTokens(16000L)build-with-claude/preserved-thinking see the edit
Anthropic's documentation has since written up maxTokens, on preserved-thinking.