From 979e1b1973b98c12d40e77671c6caf227d46dec3 Mon Sep 17 00:00:00 2001 From: 7418 <7418@openclaw.ai> Date: Tue, 24 Feb 2026 17:14:44 +0800 Subject: [PATCH] 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" --- src/app/api/providers/models/route.ts | 4 ++-- src/components/chat/MessageInput.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/api/providers/models/route.ts b/src/app/api/providers/models/route.ts index d430633..05d494a 100644 --- a/src/app/api/providers/models/route.ts +++ b/src/app/api/providers/models/route.ts @@ -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 { 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' }, ], diff --git a/src/components/chat/MessageInput.tsx b/src/components/chat/MessageInput.tsx index 732c860..b3fbec1 100644 --- a/src/components/chat/MessageInput.tsx +++ b/src/components/chat/MessageInput.tsx @@ -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' }, ];