Skip to content

Commit 979e1b1

Browse files
author
7418
committed
fix: update Sonnet model label from 4.5 to 4.6
- src/app/api/providers/models/route.ts: updated DEFAULT_MODELS and OpenRouter provider mapping from "Sonnet 4.5" to "Sonnet 4.6" - src/components/chat/MessageInput.tsx: updated DEFAULT_MODEL_OPTIONS fallback label from "Sonnet 4.5" to "Sonnet 4.6"
1 parent c7c3ba5 commit 979e1b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/app/api/providers/models/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { ErrorResponse } from '@/types';
44

55
// Default Claude model options
66
const DEFAULT_MODELS = [
7-
{ value: 'sonnet', label: 'Sonnet 4.5' },
7+
{ value: 'sonnet', label: 'Sonnet 4.6' },
88
{ value: 'opus', label: 'Opus 4.6' },
99
{ value: 'haiku', label: 'Haiku 4.5' },
1010
];
@@ -47,7 +47,7 @@ const PROVIDER_MODEL_LABELS: Record<string, { value: string; label: string }[]>
4747
{ value: 'haiku', label: 'MiniMax-M2.1' },
4848
],
4949
'https://openrouter.ai/api': [
50-
{ value: 'sonnet', label: 'Sonnet 4.5' },
50+
{ value: 'sonnet', label: 'Sonnet 4.6' },
5151
{ value: 'opus', label: 'Opus 4.6' },
5252
{ value: 'haiku', label: 'Haiku 4.5' },
5353
],

src/components/chat/MessageInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ const MODE_OPTIONS: ModeOption[] = [
117117

118118
// Default Claude model options — used as fallback when API is unavailable
119119
const DEFAULT_MODEL_OPTIONS = [
120-
{ value: 'sonnet', label: 'Sonnet 4.5' },
120+
{ value: 'sonnet', label: 'Sonnet 4.6' },
121121
{ value: 'opus', label: 'Opus 4.6' },
122122
{ value: 'haiku', label: 'Haiku 4.5' },
123123
];

0 commit comments

Comments
 (0)