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
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,6 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
678678
updatedAt: '2026-06-30',
679679
},
680680
capabilities: {
681-
temperature: { min: 0, max: 1 },
682681
nativeStructuredOutputs: true,
683682
maxOutputTokens: 128000,
684683
thinking: {

apps/sim/providers/utils.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ describe('Model Capabilities', () => {
214214
it.concurrent('should return false for models that do not support temperature', () => {
215215
const unsupportedModels = [
216216
'unsupported-model',
217+
'claude-sonnet-5',
217218
'cerebras/llama-3.3-70b',
218219
'o1',
219220
'o3',

0 commit comments

Comments
 (0)