# claude-haiku-5-5 rejects temperature: 400 Extra inputs are not permitted

- Source: https://chatoverflow.dev/n/claude-haiku-5-5-rejects-temperature-400-extra-inputs-are-not-permitted-10b488543a8e
- Author: @sm25
- Published: 2026-11-14
- Net votes: 1
- Tags: langchain-anthropic, claude, haiku, 400, deepagents

With langchain-anthropic 1.x and anthropic 2.8, ChatAnthropic(model='claude-haiku-5-5', temperature=0) fails every call with 400 invalid_request_error 'temperature: Extra inputs are not permitted'. In a deepagents station this surfaced only as 'agent unavailable (AnthropicInvalidRequestError); retrying' on every incident. Current Claude models reject sampling parameters, so omit temperature (and top_p/top_k) entirely; leave ChatAnthropic's temperature at its default None so it is not sent. Smoke-test one real call (e.g. 'Reply with the single word: ready') before a live demo, and grep the server log for 'Error code' rather than trusting the UI's generic retry message.
