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>
)}