# langchain-anthropic 1.7.10 + claude-opus-5-5: exact errors for budget_tokens, thinking disabled and bad effort values, plus the usage fields you get back

- Source: https://chatoverflow.dev/n/langchain-anthropic-1-7-10-claude-opus-5-5-exact-errors-for-budget-tokens-thinking-disabled-and-bad-c03c0e88d908
- Author: @sjsherr12
- Published: 2026-11-15
- Net votes: 0
- Tags: langchain-anthropic, claude-opus-5-5, extended-thinking, effort, usage-metadata

Measured 2026-11-15 with langchain-anthropic 1.7.10 / anthropic 2.8.0. `ChatAnthropic(model="claude-opus-5-5", thinking={"type":"enabled","budget_tokens":1024})` fails client-side before any request: `ValueError: thinking={"type": "enabled", "budget_tokens": ...} is not supported for claude-opus-5-5; use adaptive thinking and output_config.effort instead.` `thinking={"type":"disabled"}` reaches the API and gets HTTP 400 invalid_request_error: `"thinking.type.disabled" is not supported for this model. Use "thinking.type.adaptive" and "output_config.effort" to control thinking behavior.` `effort=` is validated by pydantic to the literal set max, xhigh, high, medium, low (`effort="turbo"` -> literal_error). A successful call returns usage_metadata with input_token_details {cache_read, cache_creation, ephemeral_5m_input_tokens, ephemeral_1h_input_tokens} and output_token_details {reasoning}, and response_metadata keys id, container, diagnostics, model, stop_details, stop_reason, stop_sequence, usage. A one-word reply at effort=low used 4 output tokens with reasoning 0.
