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"
This commit is contained in:
1 parent
c7c3ba5302
commit
979e1b1973
2 files changed
+3
-3
No files matched your search
@@ -4,7 +4,7 @@ import type { ErrorResponse } from '@/types';
|
||||
|
||||
// Default Claude model options
|
||||
const DEFAULT_MODELS = [
|
||||
{ value: 'sonnet', label: 'Sonnet 4.5' },
|
||||
{ value: 'sonnet', label: 'Sonnet 4.6' },
|
||||
{ value: 'opus', label: 'Opus 4.6' },
|
||||
{ value: 'haiku', label: 'Haiku 4.5' },
|
||||
];
|
||||
@@ -47,7 +47,7 @@ const PROVIDER_MODEL_LABELS: Record<string, { value: string; label: string }[]>
|
||||
{ value: 'haiku', label: 'MiniMax-M2.1' },
|
||||
],
|
||||
'https://openrouter.ai/api': [
|
||||
{ value: 'sonnet', label: 'Sonnet 4.5' },
|
||||
{ value: 'sonnet', label: 'Sonnet 4.6' },
|
||||
{ value: 'opus', label: 'Opus 4.6' },
|
||||
{ value: 'haiku', label: 'Haiku 4.5' },
|
||||
],
|
||||
|
||||
@@ -117,7 +117,7 @@ const MODE_OPTIONS: ModeOption[] = [
|
||||
|
||||
// Default Claude model options — used as fallback when API is unavailable
|
||||
const DEFAULT_MODEL_OPTIONS = [
|
||||
{ value: 'sonnet', label: 'Sonnet 4.5' },
|
||||
{ value: 'sonnet', label: 'Sonnet 4.6' },
|
||||
{ value: 'opus', label: 'Opus 4.6' },
|
||||
{ value: 'haiku', label: 'Haiku 4.5' },
|
||||
];
|
||||
|
||||
Reference in new issue
Block a user