Repository navigation
fix(claude): remove sampling params on Claude 4.7+/5.x and top_p on Haiku/Sonnet 4.5 across hosts - #5760
fix(claude): remove sampling params on Claude 4.7+/5.x and top_p on Haiku/Sonnet 4.5 across hosts#5760bhaveshpatel640 wants to merge 7 commits into
Conversation
…tries Co-authored-by: Cursor <cursoragent@cursor.com>
… Opus sampling removals Co-authored-by: Cursor <cursoragent@cursor.com>
…osts Co-authored-by: Cursor <cursoragent@cursor.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit b05547a. Configure here.
| model: databricks-claude-haiku-4-5 | ||
| provisioning: serverless | ||
| removeParams: | ||
| - top_p |
There was a problem hiding this comment.
Haiku 4.5 still forwards effort
Medium Severity
The new removeParams on databricks-claude-haiku-4-5 lists only top_p, so inherited reasoning_effort from Databricks default.yaml is still forwarded. Haiku 4.5 does not accept effort, and the same-host system.ai.claude-haiku-4-5 alias already strips it.
Triggered by project rule: Provider default limits
Reviewed by Cursor Bugbot for commit b05547a. Configure here.
SDK live feature checksResult: ❌ failed (459/1631 scenarios) Informational — does not block merge.
Failures
|


Summary
Adds
temperature,top_pandtop_ktoremoveParamson every Claude Opus 4.7+ / 5.x family entry that was missing any of them (65 files; existing entries such asnandreasoning_effortare kept).Why
Claude Opus 4.7 and later reject non-default
temperature,top_pandtop_kwith a 400 (temperature is deprecated for this model), on Bedrock Converse and InvokeModel alike (AWS: Claude Opus 4.7 on Amazon Bedrock, migration notes). Theanthropic,databricksandtruefoundry-managedentries already list all three; the other hosts were missing some or all of them, so clients that send default sampling params (for example IDE assistants) hit the error.Changes
aws-bedrockazure-ai-foundrygoogle-vertexmicrosoft-foundryaws-bedrock-mantleScope of the 4.7+/5.x change is limited to the Opus 4.7/4.8, Opus 5/5.5, Sonnet 5/5.5, Haiku 5.5 and Fable 5/5.1 families. Older Claude models are untouched.
Older Claude entries
Some older entries also listed sampling params that no provider doc says those models reject, and a model that rejects both
temperatureandtop_ptogether still accepts either alone (AWS docs). Sotemperatureis no longer removed on Claude Opus 4 / 4.1 / 4.5 and Sonnet 4.5, which keep only thetop_premoval. The Claude 3 Opus (latest) removal is dropped entirely (10 files, deletions only).Haiku 4.5 / Sonnet 4.5 (
top_p)Haiku 4.5 and Sonnet 4.5 reject
temperatureandtop_ptogether, sotop_pis added toremoveParamson the remaining entries that lacked it (26 files):anthropic(Haiku 4.5 alias),aws-bedrock-mantle,aws-bedrock(Haiku 4.5au/in/jp, Sonnet 4.5au/global/jp),azure-ai-foundry,microsoft-foundry,google-vertexanddatabricks. This includes the changes from #5765.Validation
npm run validate: 4549 passed, 0 failedsort:yamland prettier settingsNote
Medium Risk
Wide catalog changes alter which request params are stripped per model; mis-tuned entries could still cause provider 400s or unexpectedly allow sampling on models that reject it.
Overview
Updates
removeParamsacross many Claude provider YAML entries so gateways stop forwarding sampling fields that newer models reject with 400 errors (e.g. deprecatedtemperatureon Opus 4.7+ / 5.x).For Opus 4.7+, Opus/Sonnet 5.x, Fable 5, and related Bedrock regional/mantle, Azure Foundry, Vertex, Databricks, and Microsoft Foundry entries, the PR adds or completes
temperature,top_p, andtop_kinremoveParamswhere those hosts were still missing them.For older Opus 4 / 4.1 / 4.5 and Sonnet 4.5 entries, it **drops
temperaturefromremoveParamsand keepstop_ponly, matching docs that those models still accept temperature alone. Claude 3 Opus (latest) losesremoveParamsentirely.Haiku 4.5 and Sonnet 4.5 entries that lacked it now also **remove
top_p, alongside existing removals likereasoning_effortwhere applicable.Reviewed by Cursor Bugbot for commit b05547a. Bugbot is set up for automated code reviews on this repo. Configure here.