Claude Code v2.1.221 ·
Local HTTP API rejects non-string model fields
The local HTTP API now returns a clear 400 when model isn't a string, instead of ignoring it.
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Bug FixesKind: in v2.1.221,
Bug FixesSection of the release
What
A request body whose model key is not a string now fails loudly instead of having the field quietly ignored.
Details
- Returns 400 with an
invalid_request_error.
Evidence
model must be a string
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
See this entry in the whole of v2.1.221 →