diff --git a/src/components/providers/forms/ClaudeFormFields.tsx b/src/components/providers/forms/ClaudeFormFields.tsx index 4a6fd8399..8362015f4 100644 --- a/src/components/providers/forms/ClaudeFormFields.tsx +++ b/src/components/providers/forms/ClaudeFormFields.tsx @@ -24,7 +24,13 @@ import { DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; -import { ChevronDown, ChevronRight, Download, Loader2 } from "lucide-react"; +import { + ChevronDown, + ChevronRight, + Download, + Loader2, + Wand2, +} from "lucide-react"; import EndpointSpeedTest from "./EndpointSpeedTest"; import { ApiKeySection, EndpointField, ModelInputWithFetch } from "./shared"; import { CopilotAuthSection } from "./CopilotAuthSection"; @@ -571,23 +577,64 @@ export function ClaudeFormFields({
{t("providerForm.modelMappingLabel")} - {!isCopilotPreset && ( +
+ {/* 一键设置按钮 */} - )} + {!isCopilotPreset && ( + + )} +

{t("providerForm.modelMappingHint")} diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index b7e4aae87..684f1cc92 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -843,6 +843,8 @@ "modelHelper": "Optional: Specify default Claude model to use, leave blank to use system default.", "modelMappingLabel": "Model Mapping", "modelMappingHint": "Usually not needed if the provider natively serves Claude models. Only configure when you need to map requests to different model names.", + "quickSetModels": "Quick Set", + "quickSetSuccess": "Model name applied to all fields", "advancedOptionsToggle": "Advanced Options", "advancedOptionsHint": "Includes API format, auth field, and model mapping. Defaults work for most use cases.", "categoryOfficial": "Official", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index c76362a6d..6d597cd0e 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -843,6 +843,8 @@ "modelHelper": "任意: 既定で使いたい Claude モデルを指定。空欄ならシステム既定を使用します。", "modelMappingLabel": "モデルマッピング", "modelMappingHint": "プロバイダーが Claude モデルをネイティブ提供している場合、通常は設定不要です。リクエストを別のモデル名にマッピングする場合のみ設定してください。", + "quickSetModels": "一括設定", + "quickSetSuccess": "モデル名をすべてのフィールドに適用しました", "advancedOptionsToggle": "高級オプション", "advancedOptionsHint": "API フォーマット、認証フィールド、モデルマッピングの設定を含みます。通常はデフォルトのままで問題ありません。", "categoryOfficial": "公式", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index f3cbbeb17..47dabcfbe 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -844,6 +844,8 @@ "modelHelper": "可选:指定默认使用的 Claude 模型,留空则使用系统默认。", "modelMappingLabel": "模型映射", "modelMappingHint": "如果供应商原生提供 Claude 系列模型,通常无需配置。仅在需要将请求映射到不同模型名称时填写。", + "quickSetModels": "一键设置", + "quickSetSuccess": "已将模型名称应用到所有字段", "advancedOptionsToggle": "高级选项", "advancedOptionsHint": "包含 API 格式、认证字段、模型映射等配置。大多数场景下保持默认即可。", "categoryOfficial": "官方",