fix(providers): drop deprecated temperature capability from claude-so… · simstudioai/sim@c763000 · GitHub
Skip to content

Commit c763000

Browse files
committed
fix(providers): drop deprecated temperature capability from claude-sonnet-5
Claude Sonnet 5 rejects the temperature parameter with a 400 ("`temperature` is deprecated for this model"), verified against the live Anthropic API. The model entry exposed temperature: { min: 0, max: 1 }, so supportsTemperature() returned true and the Anthropic request builder sent temperature whenever thinking was disabled, breaking those runs. Remove the capability (matching Opus 4.7/4.8, which omit it for the same reason) so temperature is never sent for Sonnet 5. Add a supportsTemperature regression assertion.
1 parent af87de0 commit c763000

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/providers/models.ts

Lines changed: 0 additions & 1 deletion

apps/sim/providers/utils.test.ts

Lines changed: 1 addition & 0 deletions

0 commit comments

Comments
 (0)