mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-08-02 18:41:35 +08:00
chore(presets): update CrazyRouter API endpoints to cn subdomain
Update all CrazyRouter baseURL configurations from crazyrouter.com to cn.crazyrouter.com across all supported applications (Claude, Codex, Gemini, Hermes, OpenClaw, OpenCode, Claude Desktop). Website and registration URLs remain unchanged.
This commit is contained in:
@@ -590,11 +590,11 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
|||||||
websiteUrl: "https://www.crazyrouter.com",
|
websiteUrl: "https://www.crazyrouter.com",
|
||||||
apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch",
|
apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch",
|
||||||
category: "third_party",
|
category: "third_party",
|
||||||
baseUrl: "https://crazyrouter.com",
|
baseUrl: "https://cn.crazyrouter.com",
|
||||||
mode: "proxy",
|
mode: "proxy",
|
||||||
apiFormat: "anthropic",
|
apiFormat: "anthropic",
|
||||||
modelRoutes: passthroughRoutes(),
|
modelRoutes: passthroughRoutes(),
|
||||||
endpointCandidates: ["https://crazyrouter.com"],
|
endpointCandidates: ["https://cn.crazyrouter.com"],
|
||||||
isPartner: true,
|
isPartner: true,
|
||||||
partnerPromotionKey: "crazyrouter",
|
partnerPromotionKey: "crazyrouter",
|
||||||
icon: "crazyrouter",
|
icon: "crazyrouter",
|
||||||
|
|||||||
@@ -638,11 +638,11 @@ export const providerPresets: ProviderPreset[] = [
|
|||||||
apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch",
|
apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
env: {
|
env: {
|
||||||
ANTHROPIC_BASE_URL: "https://crazyrouter.com",
|
ANTHROPIC_BASE_URL: "https://cn.crazyrouter.com",
|
||||||
ANTHROPIC_AUTH_TOKEN: "",
|
ANTHROPIC_AUTH_TOKEN: "",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
endpointCandidates: ["https://crazyrouter.com"],
|
endpointCandidates: ["https://cn.crazyrouter.com"],
|
||||||
category: "third_party",
|
category: "third_party",
|
||||||
isPartner: true, // 合作伙伴
|
isPartner: true, // 合作伙伴
|
||||||
partnerPromotionKey: "crazyrouter", // 促销信息 i18n key
|
partnerPromotionKey: "crazyrouter", // 促销信息 i18n key
|
||||||
|
|||||||
@@ -267,10 +267,10 @@ requires_openai_auth = true`,
|
|||||||
auth: generateThirdPartyAuth(""),
|
auth: generateThirdPartyAuth(""),
|
||||||
config: generateThirdPartyConfig(
|
config: generateThirdPartyConfig(
|
||||||
"crazyrouter",
|
"crazyrouter",
|
||||||
"https://crazyrouter.com/v1",
|
"https://cn.crazyrouter.com/v1",
|
||||||
"gpt-5.4",
|
"gpt-5.4",
|
||||||
),
|
),
|
||||||
endpointCandidates: ["https://crazyrouter.com/v1"],
|
endpointCandidates: ["https://cn.crazyrouter.com/v1"],
|
||||||
isPartner: true,
|
isPartner: true,
|
||||||
partnerPromotionKey: "crazyrouter",
|
partnerPromotionKey: "crazyrouter",
|
||||||
icon: "crazyrouter",
|
icon: "crazyrouter",
|
||||||
|
|||||||
@@ -185,17 +185,17 @@ export const geminiProviderPresets: GeminiProviderPreset[] = [
|
|||||||
apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch",
|
apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
env: {
|
env: {
|
||||||
GOOGLE_GEMINI_BASE_URL: "https://crazyrouter.com",
|
GOOGLE_GEMINI_BASE_URL: "https://cn.crazyrouter.com",
|
||||||
GEMINI_MODEL: "gemini-3.1-pro",
|
GEMINI_MODEL: "gemini-3.1-pro",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
baseURL: "https://crazyrouter.com",
|
baseURL: "https://cn.crazyrouter.com",
|
||||||
model: "gemini-3.1-pro",
|
model: "gemini-3.1-pro",
|
||||||
description: "CrazyRouter",
|
description: "CrazyRouter",
|
||||||
category: "third_party",
|
category: "third_party",
|
||||||
isPartner: true,
|
isPartner: true,
|
||||||
partnerPromotionKey: "crazyrouter",
|
partnerPromotionKey: "crazyrouter",
|
||||||
endpointCandidates: ["https://crazyrouter.com"],
|
endpointCandidates: ["https://cn.crazyrouter.com"],
|
||||||
icon: "crazyrouter",
|
icon: "crazyrouter",
|
||||||
iconColor: "#000000",
|
iconColor: "#000000",
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -808,7 +808,7 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
|
|||||||
apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch",
|
apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
name: "crazyrouter",
|
name: "crazyrouter",
|
||||||
base_url: "https://crazyrouter.com",
|
base_url: "https://cn.crazyrouter.com",
|
||||||
api_key: "",
|
api_key: "",
|
||||||
api_mode: "anthropic_messages",
|
api_mode: "anthropic_messages",
|
||||||
models: [
|
models: [
|
||||||
|
|||||||
@@ -1392,7 +1392,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
|||||||
websiteUrl: "https://www.crazyrouter.com",
|
websiteUrl: "https://www.crazyrouter.com",
|
||||||
apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch",
|
apiKeyUrl: "https://www.crazyrouter.com/register?aff=OZcm&ref=cc-switch",
|
||||||
settingsConfig: {
|
settingsConfig: {
|
||||||
baseUrl: "https://crazyrouter.com/v1",
|
baseUrl: "https://cn.crazyrouter.com/v1",
|
||||||
apiKey: "",
|
apiKey: "",
|
||||||
api: "anthropic-messages",
|
api: "anthropic-messages",
|
||||||
models: [
|
models: [
|
||||||
|
|||||||
@@ -1248,7 +1248,7 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
|||||||
npm: "@ai-sdk/anthropic",
|
npm: "@ai-sdk/anthropic",
|
||||||
name: "CrazyRouter",
|
name: "CrazyRouter",
|
||||||
options: {
|
options: {
|
||||||
baseURL: "https://crazyrouter.com",
|
baseURL: "https://cn.crazyrouter.com",
|
||||||
apiKey: "",
|
apiKey: "",
|
||||||
setCacheKey: true,
|
setCacheKey: true,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user