Skip to content

Commit 340af3c

Browse files
authored
Add Sonnet 4 (#1915)
1 parent 53b7f84 commit 340af3c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/web/client/src/app/api/chat/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export enum ChatType {
88
EDIT = 'edit',
99
}
1010

11-
const model = await initModel(LLMProvider.ANTHROPIC, CLAUDE_MODELS.SONNET);
11+
const model = await initModel(LLMProvider.ANTHROPIC, CLAUDE_MODELS.SONNET_4);
1212

1313
export async function POST(req: Request) {
1414
const { messages, maxSteps, chatType } = await req.json();

packages/models/src/llm/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export enum LLMProvider {
33
}
44

55
export enum CLAUDE_MODELS {
6-
SONNET = 'claude-3-7-sonnet-20250219',
6+
SONNET_4 = 'claude-sonnet-4-20250514',
7+
SONNET_3_7 = 'claude-3-7-sonnet-20250219',
78
HAIKU = 'claude-3-5-haiku-20241022',
89
}

0 commit comments

Comments
 (0)