refactor(claude-desktop): show badge only for providers requiring routing

Direct-mode providers no longer display a badge since routing is
optional for them. Proxy-mode providers now show "需要路由" / "Requires
routing" to clarify that local routing must be active.
This commit is contained in:
Jason
2026-05-08 22:21:06 +08:00
parent 1fa019026e
commit 309f7609a5
4 changed files with 8 additions and 11 deletions
+5 -8
View File
@@ -323,15 +323,12 @@ export function ProviderCard({
)}
{appId === "claude-desktop" &&
provider.category !== "official" && (
provider.category !== "official" &&
provider.meta?.claudeDesktopMode === "proxy" && (
<span className="inline-flex items-center rounded-md bg-sky-100 px-1.5 py-0.5 text-[10px] font-semibold text-sky-700 dark:bg-sky-900/40 dark:text-sky-300">
{provider.meta?.claudeDesktopMode === "proxy"
? t("claudeDesktop.modeProxy", {
defaultValue: "模型映射",
})
: t("claudeDesktop.modeDirect", {
defaultValue: "直连",
})}
{t("claudeDesktop.modeProxy", {
defaultValue: "需要路由",
})}
</span>
)}
+1 -1
View File
@@ -176,7 +176,7 @@
"claudeDesktop": {
"mode": "Model handling",
"modeDirect": "Direct",
"modeProxy": "Model mapping",
"modeProxy": "Requires routing",
"modelMappingToggle": "Needs model mapping",
"modelMappingOffHint": "Use this when the provider already exposes and accepts claude-* / anthropic/claude-* model IDs through Anthropic Messages. Claude Desktop connects to the provider directly.",
"modelMappingOnHint": "Claude Desktop currently restricts model IDs. If your provider offers non-Claude models, enable this switch and keep local routing running while in use.",
+1 -1
View File
@@ -176,7 +176,7 @@
"claudeDesktop": {
"mode": "モデル処理方式",
"modeDirect": "直結",
"modeProxy": "モデルマッピング",
"modeProxy": "ルーティング必要",
"modelMappingToggle": "モデルマッピングが必要",
"modelMappingOffHint": "プロバイダーが Anthropic Messages で claude-* / anthropic/claude-* のモデル ID を公開し、そのまま受け付ける場合に使います。Claude Desktop はプロバイダーへ直接接続します。",
"modelMappingOnHint": "Claude Desktop は現在モデル ID を制限しています。お使いのプロバイダーが Claude 系列以外のモデルを提供する場合、このスイッチを有効にし、使用中はローカルルーティングを起動したままにしてください。",
+1 -1
View File
@@ -176,7 +176,7 @@
"claudeDesktop": {
"mode": "模型处理方式",
"modeDirect": "直连",
"modeProxy": "模型映射",
"modeProxy": "需要路由",
"modelMappingToggle": "需要模型映射",
"modelMappingOffHint": "适合供应商已经暴露并接受 claude-* / anthropic/claude-* 模型名的 Anthropic Messages API;请求会由 Claude Desktop 直连供应商。",
"modelMappingOnHint": "Claude Desktop 目前对模型 ID 进行了限制,如果您的供应商提供的模型不是 Claude 系列模型,则需要打开本开关,并在使用过程中保持本地路由开启。",