Skip to content

Commit c52f78c

Browse files
authored
fix(models): remove retired claude-3-7-sonnet and update default models (#3292)
1 parent e318bf2 commit c52f78c

File tree

5 files changed

+4
-23
lines changed

5 files changed

+4
-23
lines changed

apps/sim/app/api/tools/stagehand/agent/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ export async function POST(request: NextRequest) {
165165
}
166166

167167
const modelName =
168-
provider === 'anthropic' ? 'anthropic/claude-3-7-sonnet-latest' : 'openai/gpt-4.1'
168+
provider === 'anthropic' ? 'anthropic/claude-sonnet-4-5-20250929' : 'openai/gpt-5'
169169

170170
try {
171171
logger.info('Initializing Stagehand with Browserbase (v3)', { provider, modelName })

apps/sim/app/api/tools/stagehand/extract/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export async function POST(request: NextRequest) {
101101

102102
try {
103103
const modelName =
104-
provider === 'anthropic' ? 'anthropic/claude-3-7-sonnet-latest' : 'openai/gpt-4.1'
104+
provider === 'anthropic' ? 'anthropic/claude-sonnet-4-5-20250929' : 'openai/gpt-5'
105105

106106
logger.info('Initializing Stagehand with Browserbase (v3)', { provider, modelName })
107107

apps/sim/blocks/blocks/browser_use.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const BrowserUseBlock: BlockConfig<BrowserUseResponse> = {
3333
type: 'dropdown',
3434
options: [
3535
{ label: 'Browser Use LLM', id: 'browser-use-llm' },
36+
{ label: 'Browser Use 2.0', id: 'browser-use-2.0' },
3637
{ label: 'GPT-4o', id: 'gpt-4o' },
3738
{ label: 'GPT-4o Mini', id: 'gpt-4o-mini' },
3839
{ label: 'GPT-4.1', id: 'gpt-4.1' },
@@ -42,6 +43,7 @@ export const BrowserUseBlock: BlockConfig<BrowserUseResponse> = {
4243
{ label: 'Gemini 2.5 Flash', id: 'gemini-2.5-flash' },
4344
{ label: 'Gemini 2.5 Pro', id: 'gemini-2.5-pro' },
4445
{ label: 'Gemini 3 Pro Preview', id: 'gemini-3-pro-preview' },
46+
{ label: 'Gemini 3 Flash Preview', id: 'gemini-3-flash-preview' },
4547
{ label: 'Gemini Flash Latest', id: 'gemini-flash-latest' },
4648
{ label: 'Gemini Flash Lite Latest', id: 'gemini-flash-lite-latest' },
4749
{ label: 'Claude 3.7 Sonnet', id: 'claude-3-7-sonnet-20250219' },

apps/sim/providers/models.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -467,25 +467,6 @@ export const PROVIDER_DEFINITIONS: Record<string, ProviderDefinition> = {
467467
},
468468
contextWindow: 200000,
469469
},
470-
{
471-
id: 'claude-3-7-sonnet-latest',
472-
pricing: {
473-
input: 3.0,
474-
cachedInput: 0.3,
475-
output: 15.0,
476-
updatedAt: '2026-02-05',
477-
},
478-
capabilities: {
479-
temperature: { min: 0, max: 1 },
480-
computerUse: true,
481-
maxOutputTokens: 64000,
482-
thinking: {
483-
levels: ['low', 'medium', 'high'],
484-
default: 'high',
485-
},
486-
},
487-
contextWindow: 200000,
488-
},
489470
],
490471
},
491472
'azure-openai': {

apps/sim/providers/utils.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ describe('Model Capabilities', () => {
183183
'gemini-2.5-flash',
184184
'claude-sonnet-4-0',
185185
'claude-opus-4-0',
186-
'claude-3-7-sonnet-latest',
187186
'grok-3-latest',
188187
'grok-3-fast-latest',
189188
'deepseek-v3',
@@ -260,7 +259,6 @@ describe('Model Capabilities', () => {
260259
const modelsRange01 = [
261260
'claude-sonnet-4-0',
262261
'claude-opus-4-0',
263-
'claude-3-7-sonnet-latest',
264262
'grok-3-latest',
265263
'grok-3-fast-latest',
266264
]

0 commit comments

Comments
 (0)