From 2105f2d05bf927c914f1b99913cc7c8f095b5a7f Mon Sep 17 00:00:00 2001 From: Jason Date: Sat, 3 Jan 2026 12:04:34 +0800 Subject: [PATCH] fix(i18n): remove hardcoded defaultValue and unused placeholder for reasoning model --- src/components/providers/forms/ClaudeFormFields.tsx | 7 +------ src/i18n/locales/en.json | 1 - src/i18n/locales/ja.json | 1 - src/i18n/locales/zh.json | 1 - 4 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/providers/forms/ClaudeFormFields.tsx b/src/components/providers/forms/ClaudeFormFields.tsx index 351f11b41..e3e1d5311 100644 --- a/src/components/providers/forms/ClaudeFormFields.tsx +++ b/src/components/providers/forms/ClaudeFormFields.tsx @@ -222,9 +222,7 @@ export function ClaudeFormFields({ {/* 推理模型 */}
- {t("providerForm.anthropicReasoningModel", { - defaultValue: "推理模型 (Thinking)", - })} + {t("providerForm.anthropicReasoningModel")} onModelChange("ANTHROPIC_REASONING_MODEL", e.target.value) } - placeholder={t("providerForm.reasoningModelPlaceholder", { - defaultValue: "", - })} autoComplete="off" />
diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index a67f8225d..c10a86f68 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -343,7 +343,6 @@ "anthropicModel": "Main Model", "anthropicSmallFastModel": "Fast Model", "anthropicReasoningModel": "Reasoning Model (Thinking)", - "reasoningModelPlaceholder": "e.g. claude-sonnet-4-20250514", "openrouterCompatMode": "OpenRouter Compatibility Mode", "openrouterCompatModeHint": "Use OpenAI Chat Completions interface and convert to Anthropic SSE.", "anthropicDefaultHaikuModel": "Default Haiku Model", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 4ee529b38..73746946d 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -343,7 +343,6 @@ "anthropicModel": "メインモデル", "anthropicSmallFastModel": "高速モデル", "anthropicReasoningModel": "推論モデル(Thinking)", - "reasoningModelPlaceholder": "例: claude-sonnet-4-20250514", "openrouterCompatMode": "OpenRouter 互換モード", "openrouterCompatModeHint": "OpenAI Chat Completions インターフェースを使用し、Anthropic SSE に変換します。", "anthropicDefaultHaikuModel": "既定 Haiku モデル", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index b0d9ac1e4..2f4bec1c6 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -343,7 +343,6 @@ "anthropicModel": "主模型", "anthropicSmallFastModel": "快速模型", "anthropicReasoningModel": "推理模型 (Thinking)", - "reasoningModelPlaceholder": "如 claude-sonnet-4-20250514", "openrouterCompatMode": "OpenRouter 兼容模式", "openrouterCompatModeHint": "使用 OpenAI Chat Completions 接口并转换为 Anthropic SSE。", "anthropicDefaultHaikuModel": "Haiku 默认模型",