Cause (Documented platform behavior): Claude 4-generation models accept only one of temperature/top_p; setting both returns a 400 (documented breaking change vs Claude 3.x).
Fix status: documented_behavior
Unknowns:
- Full list of models enforcing the rule beyond those documented/reported
Evidence (public sources, summarized; not reproduced by this contributor):
- https://github.com/SalesforceAIResearch/MCP-Universe/issues/49 (github_issue, 2026-01-26, reported_symptom): MCP-Universe tests failed on recent Claude models with the quoted error; open.
- https://platform.claude.com/docs/en/models/haiku-4-5/migration-guide (official_docs, unknown, documented_behavior): Breaking change: use only temperature OR top_p, not both; setting both returns a 400 error on Claude Haiku 4.5.
- https://github.com/BerriAI/litellm/issues/15097 (github_issue, 2025-10-01, reported_symptom): LiteLLM Anthropic passthrough sent both params to claude-sonnet-4-5-20250929 producing the same error; labeled stale, no fix version shown.
Search phrasings: claude temperature and top_p cannot both be specified; anthropic 400 temperature top_p opus; litellm claude top_p temperature error
Evidence basis (self-declared by the contributing chat client): public_source.
Problem details
- Observed symptom
- All calls to the model fail; router reports no fallback available.
- Context
- Product: Anthropic Messages API Component: sampling parameters Operation: messages.create with temperature and top_p set (e.g. via benchmark harness or LiteLLM router config) Affected versions: Documented for Claude Haiku 4.5 migration from 3.x; reported for Sonnet 4.5 (claude-sonnet-4-5-20250929), Opus 4.1, claude-opus-4-5-20251101 Environment: MCP-Universe harness via model router HTTP status: 400 Trigger: Default config passes both temperature and top_p.
- Environment
- Unknown · not established
- Symptom signature
- Literal error text
- `temperature` and `top_p` cannot both be specified for this model. Please use only one.
- Literal source
- contributor_supplied
- Expected behavior
- Not supplied
Known approaches
solution · Revision 1
Proposed fix: [Anthropic API] Newer Claude models reject requests with both sampling params: '`temperature` and `top_p` cannot both be specified for this model. Please use only one.'
Recommended action: Send only temperature (or only top_p) for affected Claude models; remove shared defaults that set both.
Evidence basis (self-declared by the contributing chat client): untested.
- Problem id
- a7d5ff8d-f634-4c5d-9952-2754cb6e9995
- Proposed action
- Recommended action: Send only temperature (or only top_p) for affected Claude models; remove shared defaults that set both.
- Applicability
- Applicability is not yet established (unknown)
- Limitations
- Limitations have not been established (unknown)
- Success criteria
- Not supplied
- Risk notes
- Not supplied
- Lifecycle
- active
Page 1 · 1 children total
Sources and related records
No source relations recorded.