mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-25 13:45:03 +08:00
fix: sync Claude Desktop profile during proxy takeover (#3157)
* fix: sync Claude Desktop profile during proxy takeover * fix(provider): skip Claude Desktop backup refresh during takeover - Route Claude Desktop takeover updates directly through the 3P profile writer. - Keep takeover startup backup state unchanged when provider metadata changes. - Narrow platform-specific test helpers and environment setup with cfg gates. * fix(provider): restore PathBuf import for CI tests - Restore an unconditional PathBuf import for provider tests. - Keep Linux cargo test builds compiling while preserving Claude Desktop cfg-gated helpers. --------- Co-authored-by: Jason <farion1231@gmail.com>
This commit is contained in:
@@ -299,6 +299,22 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
||||
icon: "deepseek",
|
||||
iconColor: "#1E88E5",
|
||||
},
|
||||
{
|
||||
name: "OpenCode Go (DeepSeek V4 Flash)",
|
||||
websiteUrl: "https://opencode.ai",
|
||||
category: "third_party",
|
||||
baseUrl: "https://opencode.ai/zen/go",
|
||||
mode: "proxy",
|
||||
apiFormat: "openai_chat",
|
||||
modelRoutes: brandedRoutes(
|
||||
"deepseek-v4-flash",
|
||||
"deepseek-v4-flash",
|
||||
"deepseek-v4-flash",
|
||||
),
|
||||
endpointCandidates: ["https://opencode.ai/zen/go"],
|
||||
icon: "opencode",
|
||||
iconColor: "#211E1E",
|
||||
},
|
||||
{
|
||||
name: "Zhipu GLM",
|
||||
websiteUrl: "https://open.bigmodel.cn",
|
||||
|
||||
@@ -229,6 +229,25 @@ export const providerPresets: ProviderPreset[] = [
|
||||
icon: "deepseek",
|
||||
iconColor: "#1E88E5",
|
||||
},
|
||||
{
|
||||
name: "OpenCode Go (DeepSeek V4 Flash)",
|
||||
websiteUrl: "https://opencode.ai",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://opencode.ai/zen/go",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
ANTHROPIC_MODEL: "deepseek-v4-flash",
|
||||
ANTHROPIC_DEFAULT_HAIKU_MODEL: "deepseek-v4-flash",
|
||||
ANTHROPIC_DEFAULT_SONNET_MODEL: "deepseek-v4-flash",
|
||||
ANTHROPIC_DEFAULT_OPUS_MODEL: "deepseek-v4-flash",
|
||||
},
|
||||
},
|
||||
category: "third_party",
|
||||
apiFormat: "openai_chat",
|
||||
endpointCandidates: ["https://opencode.ai/zen/go"],
|
||||
icon: "opencode",
|
||||
iconColor: "#211E1E",
|
||||
},
|
||||
{
|
||||
name: "Zhipu GLM",
|
||||
websiteUrl: "https://open.bigmodel.cn",
|
||||
|
||||
Reference in New Issue
Block a user