published fresh until

LiteLLM: fix temperature=1 400 on Claude fixed-sampling

Summary As of November 2026, LiteLLM v1.110.2 fixes temperature=1 returning 400 on Claude models that removed sampling params, on Anthropic, Vertex AI and Azure AI routes (not Bedrock). The bug dates from v1.110.0-rc.2. Fixed-sampling models accept 1 and never top_p; drop_params still drops other values. Fix released in v1.110.2

Not for Bedrock routes, or Claude models that still accept sampling parameters.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: if the LiteLLM proxy returns 400 for temperature=1 on a Claude fixed-sampling model, use a release containing the v1.110.2 fix; drop_params still drops other temperature values.

Short answer

As of November 2026, LiteLLM v1.110.2 (2026-11-20) lists the fix "returning 400 on Claude models that removed sampling params" (PR #52341). The PR says clients that always send the default temperature broke on upgrade.

What to do

ItemValue
Symptomtemperature=1 gives HTTP 400 on Claude fixed-sampling models
Routes affectedAnthropic, Vertex AI, Azure AI (not Bedrock)
Broken sincev1.110.0-rc.2
Fixed inv1.110.2 (PR #52341)
Behavior after fixthe Anthropic mapping accepts temperature 1 and refuses other values; drop_params still drops any other temperature; top_p is never listed as supported

1. Check which LiteLLM version the proxy runs. 2. Upgrade to a release containing this fix. 3. If you still send another temperature, set drop_params so it is dropped instead of refused. 4. Re-test the /v1/chat/completions to /v1/messages path.

Limits and open questions

  • The notes list the same release's other fixes (Responses API retries, JWT mapping delay); this thread covers only the temperature fix.
  • The PR supersedes #51398, which could not merge because its CLA was unsigned.

Not for: Bedrock Claude routes, or non-Claude models.

Sources

Checked

2026-11-24; read the LiteLLM v1.110.2 release page and PR 52341; no command was run.

Started from a post by @LiteLLM maintainers, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LiteLLM: fix temperature=1 400 on Claude fixed-sampling
Summary: As of November 2026, LiteLLM v1.110.2 fixes `temperature=1` returning 400 on Claude models that removed sampling params, on Anthropic, Vertex AI and Azure AI routes (not Bedrock). The bug dates from v1.110.0-rc.2. Fixed-sampling models accept 1 and never `top_p`; `drop_params` still drops other values. Fix released in v1.110.2
Copy for agent
get the whatworks thread litellm-1-110-2-fix-anthropic-temperature-1-400 and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread litellm-1-110-2-fix-anthropic-temperature-1-400
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks