Skip to content

Commit b68eeff

Browse files
committed
improvement(models): update default to claude-sonnet-4-6 and reorganize OpenAI models
1 parent a78f3f9 commit b68eeff

File tree

6 files changed

+108
-101
lines changed

6 files changed

+108
-101
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/combobox/combobox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { useWorkflowStore } from '@/stores/workflows/workflow/store'
2121
/**
2222
* Constants for ComboBox component behavior
2323
*/
24-
const DEFAULT_MODEL = 'claude-sonnet-4-5'
24+
const DEFAULT_MODEL = 'claude-sonnet-4-6'
2525
const ZOOM_FACTOR_BASE = 0.96
2626
const MIN_ZOOM = 0.1
2727
const MAX_ZOOM = 1

apps/sim/blocks/blocks/agent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Return ONLY the JSON array.`,
130130
type: 'combobox',
131131
placeholder: 'Type or select a model...',
132132
required: true,
133-
defaultValue: 'claude-sonnet-4-5',
133+
defaultValue: 'claude-sonnet-4-6',
134134
options: getModelOptions,
135135
},
136136
{
@@ -458,7 +458,7 @@ Return ONLY the JSON array.`,
458458
],
459459
config: {
460460
tool: (params: Record<string, any>) => {
461-
const model = params.model || 'claude-sonnet-4-5'
461+
const model = params.model || 'claude-sonnet-4-6'
462462
if (!model) {
463463
throw new Error('No model selected')
464464
}

apps/sim/blocks/blocks/evaluator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export const EvaluatorBlock: BlockConfig<EvaluatorResponse> = {
177177
type: 'combobox',
178178
placeholder: 'Type or select a model...',
179179
required: true,
180-
defaultValue: 'claude-sonnet-4-5',
180+
defaultValue: 'claude-sonnet-4-6',
181181
options: getModelOptions,
182182
},
183183
...getProviderCredentialSubBlocks(),

apps/sim/blocks/blocks/router.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ export const RouterBlock: BlockConfig<RouterResponse> = {
171171
type: 'combobox',
172172
placeholder: 'Type or select a model...',
173173
required: true,
174-
defaultValue: 'claude-sonnet-4-5',
174+
defaultValue: 'claude-sonnet-4-6',
175175
options: getModelOptions,
176176
},
177177
...getProviderCredentialSubBlocks(),
@@ -298,7 +298,7 @@ export const RouterV2Block: BlockConfig<RouterV2Response> = {
298298
type: 'combobox',
299299
placeholder: 'Type or select a model...',
300300
required: true,
301-
defaultValue: 'claude-sonnet-4-5',
301+
defaultValue: 'claude-sonnet-4-6',
302302
options: getModelOptions,
303303
},
304304
...getProviderCredentialSubBlocks(),

apps/sim/executor/constants.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export const HTTP = {
190190
} as const
191191

192192
export const AGENT = {
193-
DEFAULT_MODEL: 'claude-sonnet-4-5',
193+
DEFAULT_MODEL: 'claude-sonnet-4-6',
194194
get DEFAULT_FUNCTION_TIMEOUT() {
195195
return getMaxExecutionTimeout()
196196
},
@@ -225,13 +225,13 @@ export const MEMORY = {
225225
} as const
226226

227227
export const ROUTER = {
228-
DEFAULT_MODEL: 'claude-sonnet-4-5',
228+
DEFAULT_MODEL: 'claude-sonnet-4-6',
229229
DEFAULT_TEMPERATURE: 0,
230230
INFERENCE_TEMPERATURE: 0.1,
231231
} as const
232232

233233
export const EVALUATOR = {
234-
DEFAULT_MODEL: 'claude-sonnet-4-5',
234+
DEFAULT_MODEL: 'claude-sonnet-4-6',
235235
DEFAULT_TEMPERATURE: 0.1,
236236
RESPONSE_SCHEMA_NAME: 'evaluation_response',
237237
JSON_INDENT: 2,

apps/sim/providers/models.ts

Lines changed: 99 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -117,65 +117,62 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
117117
id: 'openai',
118118
name: 'OpenAI',
119119
description: "OpenAI's models",
120-
defaultModel: 'gpt-4o',
120+
defaultModel: 'gpt-4.1',
121121
modelPatterns: [/^gpt/, /^o\d/, /^text-embedding/],
122122
icon: OpenAIIcon,
123123
capabilities: {
124124
toolUsageControl: true,
125125
},
126126
models: [
127+
// GPT-4.1 family
127128
{
128-
id: 'gpt-4o',
129+
id: 'gpt-4.1',
129130
pricing: {
130-
input: 2.5,
131-
cachedInput: 1.25,
132-
output: 10.0,
131+
input: 2.0,
132+
cachedInput: 0.5,
133+
output: 8.0,
133134
updatedAt: '2026-04-01',
134135
},
135136
capabilities: {
136137
temperature: { min: 0, max: 2 },
138+
maxOutputTokens: 32768,
137139
},
138-
contextWindow: 128000,
140+
contextWindow: 1047576,
139141
},
140142
{
141-
id: 'gpt-5.4',
143+
id: 'gpt-4.1-mini',
142144
pricing: {
143-
input: 2.5,
144-
cachedInput: 0.25,
145-
output: 15.0,
145+
input: 0.4,
146+
cachedInput: 0.1,
147+
output: 1.6,
146148
updatedAt: '2026-04-01',
147149
},
148150
capabilities: {
149-
reasoningEffort: {
150-
values: ['none', 'low', 'medium', 'high', 'xhigh'],
151-
},
152-
verbosity: {
153-
values: ['low', 'medium', 'high'],
154-
},
155-
maxOutputTokens: 128000,
151+
temperature: { min: 0, max: 2 },
152+
maxOutputTokens: 32768,
156153
},
157-
contextWindow: 1050000,
154+
contextWindow: 1047576,
158155
},
159156
{
160-
id: 'gpt-5.4-pro',
157+
id: 'gpt-4.1-nano',
161158
pricing: {
162-
input: 30.0,
163-
output: 180.0,
159+
input: 0.1,
160+
cachedInput: 0.025,
161+
output: 0.4,
164162
updatedAt: '2026-04-01',
165163
},
166164
capabilities: {
167-
reasoningEffort: {
168-
values: ['medium', 'high', 'xhigh'],
169-
},
170-
maxOutputTokens: 128000,
165+
temperature: { min: 0, max: 2 },
166+
maxOutputTokens: 32768,
171167
},
172-
contextWindow: 1050000,
168+
contextWindow: 1047576,
173169
},
170+
// GPT-5.4 family
174171
{
175-
id: 'gpt-5.2-pro',
172+
id: 'gpt-5.4-pro',
176173
pricing: {
177-
input: 21.0,
178-
output: 168.0,
174+
input: 30.0,
175+
output: 180.0,
179176
updatedAt: '2026-04-01',
180177
},
181178
capabilities: {
@@ -184,22 +181,26 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
184181
},
185182
maxOutputTokens: 128000,
186183
},
187-
contextWindow: 400000,
184+
contextWindow: 1050000,
188185
},
189186
{
190-
id: 'gpt-5-pro',
187+
id: 'gpt-5.4',
191188
pricing: {
192-
input: 15.0,
193-
output: 120.0,
189+
input: 2.5,
190+
cachedInput: 0.25,
191+
output: 15.0,
194192
updatedAt: '2026-04-01',
195193
},
196194
capabilities: {
197195
reasoningEffort: {
198-
values: ['high'],
196+
values: ['none', 'low', 'medium', 'high', 'xhigh'],
199197
},
200-
maxOutputTokens: 272000,
198+
verbosity: {
199+
values: ['low', 'medium', 'high'],
200+
},
201+
maxOutputTokens: 128000,
201202
},
202-
contextWindow: 400000,
203+
contextWindow: 1050000,
203204
},
204205
{
205206
id: 'gpt-5.4-mini',
@@ -239,6 +240,22 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
239240
},
240241
contextWindow: 400000,
241242
},
243+
// GPT-5.2 family
244+
{
245+
id: 'gpt-5.2-pro',
246+
pricing: {
247+
input: 21.0,
248+
output: 168.0,
249+
updatedAt: '2026-04-01',
250+
},
251+
capabilities: {
252+
reasoningEffort: {
253+
values: ['medium', 'high', 'xhigh'],
254+
},
255+
maxOutputTokens: 128000,
256+
},
257+
contextWindow: 400000,
258+
},
242259
{
243260
id: 'gpt-5.2',
244261
pricing: {
@@ -257,6 +274,7 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
257274
},
258275
contextWindow: 400000,
259276
},
277+
// GPT-5.1 family
260278
{
261279
id: 'gpt-5.1',
262280
pricing: {
@@ -275,6 +293,22 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
275293
},
276294
contextWindow: 400000,
277295
},
296+
// GPT-5 family
297+
{
298+
id: 'gpt-5-pro',
299+
pricing: {
300+
input: 15.0,
301+
output: 120.0,
302+
updatedAt: '2026-04-01',
303+
},
304+
capabilities: {
305+
reasoningEffort: {
306+
values: ['high'],
307+
},
308+
maxOutputTokens: 272000,
309+
},
310+
contextWindow: 400000,
311+
},
278312
{
279313
id: 'gpt-5',
280314
pricing: {
@@ -342,18 +376,32 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
342376
},
343377
contextWindow: 128000,
344378
},
379+
// o-series reasoning models
345380
{
346-
id: 'o1',
381+
id: 'o4-mini',
347382
pricing: {
348-
input: 15.0,
349-
cachedInput: 7.5,
350-
output: 60,
383+
input: 1.1,
384+
cachedInput: 0.275,
385+
output: 4.4,
351386
updatedAt: '2026-04-01',
352387
},
353388
capabilities: {
354389
reasoningEffort: {
355390
values: ['low', 'medium', 'high'],
356391
},
392+
maxOutputTokens: 100000,
393+
},
394+
contextWindow: 200000,
395+
},
396+
{
397+
id: 'o3-pro',
398+
pricing: {
399+
input: 20.0,
400+
output: 80.0,
401+
updatedAt: '2026-04-01',
402+
},
403+
capabilities: {
404+
maxOutputTokens: 100000,
357405
},
358406
contextWindow: 200000,
359407
},
@@ -390,82 +438,41 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
390438
contextWindow: 200000,
391439
},
392440
{
393-
id: 'o3-pro',
394-
pricing: {
395-
input: 20.0,
396-
output: 80.0,
397-
updatedAt: '2026-04-01',
398-
},
399-
capabilities: {
400-
maxOutputTokens: 100000,
401-
},
402-
contextWindow: 200000,
403-
},
404-
{
405-
id: 'o4-mini',
441+
id: 'o1',
406442
pricing: {
407-
input: 1.1,
408-
cachedInput: 0.275,
409-
output: 4.4,
443+
input: 15.0,
444+
cachedInput: 7.5,
445+
output: 60,
410446
updatedAt: '2026-04-01',
411447
},
412448
capabilities: {
413449
reasoningEffort: {
414450
values: ['low', 'medium', 'high'],
415451
},
416-
maxOutputTokens: 100000,
417452
},
418453
contextWindow: 200000,
419454
},
455+
// Legacy
420456
{
421-
id: 'gpt-4.1',
422-
pricing: {
423-
input: 2.0,
424-
cachedInput: 0.5,
425-
output: 8.0,
426-
updatedAt: '2026-04-01',
427-
},
428-
capabilities: {
429-
temperature: { min: 0, max: 2 },
430-
maxOutputTokens: 32768,
431-
},
432-
contextWindow: 1047576,
433-
},
434-
{
435-
id: 'gpt-4.1-nano',
436-
pricing: {
437-
input: 0.1,
438-
cachedInput: 0.025,
439-
output: 0.4,
440-
updatedAt: '2026-04-01',
441-
},
442-
capabilities: {
443-
temperature: { min: 0, max: 2 },
444-
maxOutputTokens: 32768,
445-
},
446-
contextWindow: 1047576,
447-
},
448-
{
449-
id: 'gpt-4.1-mini',
457+
id: 'gpt-4o',
450458
pricing: {
451-
input: 0.4,
452-
cachedInput: 0.1,
453-
output: 1.6,
459+
input: 2.5,
460+
cachedInput: 1.25,
461+
output: 10.0,
454462
updatedAt: '2026-04-01',
455463
},
456464
capabilities: {
457465
temperature: { min: 0, max: 2 },
458-
maxOutputTokens: 32768,
459466
},
460-
contextWindow: 1047576,
467+
contextWindow: 128000,
461468
},
462469
],
463470
},
464471
anthropic: {
465472
id: 'anthropic',
466473
name: 'Anthropic',
467474
description: "Anthropic's Claude models",
468-
defaultModel: 'claude-sonnet-4-5',
475+
defaultModel: 'claude-sonnet-4-6',
469476
modelPatterns: [/^claude/],
470477
icon: AnthropicIcon,
471478
capabilities: {

0 commit comments

Comments
 (0)