mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-05-23 22:21:00 +08:00
chore(presets): migrate OpenClaudeCode to MicuAPI domain
Replace all openclaudecode.cn URLs with micuapi.ai across all provider presets (Claude, Codex, Hermes, OpenClaw, OpenCode, Claude Desktop). This includes website URLs, API key URLs, and base URLs.
This commit is contained in:
@@ -655,14 +655,14 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "Micu",
|
||||
websiteUrl: "https://www.openclaudecode.cn",
|
||||
apiKeyUrl: "https://www.openclaudecode.cn/register?aff=aOYQ",
|
||||
websiteUrl: "https://www.micuapi.ai",
|
||||
apiKeyUrl: "https://www.micuapi.ai/register?aff=aOYQ",
|
||||
category: "third_party",
|
||||
baseUrl: "https://www.openclaudecode.cn",
|
||||
baseUrl: "https://www.micuapi.ai",
|
||||
mode: "proxy",
|
||||
apiFormat: "anthropic",
|
||||
modelRoutes: passthroughRoutes(),
|
||||
endpointCandidates: ["https://www.openclaudecode.cn"],
|
||||
endpointCandidates: ["https://www.micuapi.ai"],
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "micu",
|
||||
icon: "micu",
|
||||
|
||||
@@ -710,15 +710,15 @@ export const providerPresets: ProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "Micu",
|
||||
websiteUrl: "https://www.openclaudecode.cn",
|
||||
apiKeyUrl: "https://www.openclaudecode.cn/register?aff=aOYQ",
|
||||
websiteUrl: "https://www.micuapi.ai",
|
||||
apiKeyUrl: "https://www.micuapi.ai/register?aff=aOYQ",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://www.openclaudecode.cn",
|
||||
ANTHROPIC_BASE_URL: "https://www.micuapi.ai",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
},
|
||||
},
|
||||
endpointCandidates: ["https://www.openclaudecode.cn"],
|
||||
endpointCandidates: ["https://www.micuapi.ai"],
|
||||
category: "third_party",
|
||||
isPartner: true, // 合作伙伴
|
||||
partnerPromotionKey: "micu", // 促销信息 i18n key
|
||||
|
||||
@@ -337,15 +337,15 @@ requires_openai_auth = true`,
|
||||
},
|
||||
{
|
||||
name: "Micu",
|
||||
websiteUrl: "https://www.openclaudecode.cn",
|
||||
apiKeyUrl: "https://www.openclaudecode.cn/register?aff=aOYQ",
|
||||
websiteUrl: "https://www.micuapi.ai",
|
||||
apiKeyUrl: "https://www.micuapi.ai/register?aff=aOYQ",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"micu",
|
||||
"https://www.openclaudecode.cn/v1",
|
||||
"https://www.micuapi.ai/v1",
|
||||
"gpt-5.4",
|
||||
),
|
||||
endpointCandidates: ["https://www.openclaudecode.cn/v1"],
|
||||
endpointCandidates: ["https://www.micuapi.ai/v1"],
|
||||
category: "third_party",
|
||||
isPartner: true, // 合作伙伴
|
||||
partnerPromotionKey: "micu", // 促销信息 i18n key
|
||||
|
||||
@@ -896,11 +896,11 @@ export const hermesProviderPresets: HermesProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "Micu",
|
||||
websiteUrl: "https://www.openclaudecode.cn",
|
||||
apiKeyUrl: "https://www.openclaudecode.cn/register?aff=aOYQ",
|
||||
websiteUrl: "https://www.micuapi.ai",
|
||||
apiKeyUrl: "https://www.micuapi.ai/register?aff=aOYQ",
|
||||
settingsConfig: {
|
||||
name: "micu",
|
||||
base_url: "https://www.openclaudecode.cn",
|
||||
base_url: "https://www.micuapi.ai",
|
||||
api_key: "",
|
||||
api_mode: "anthropic_messages",
|
||||
models: [
|
||||
|
||||
@@ -1561,10 +1561,10 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "Micu",
|
||||
websiteUrl: "https://www.openclaudecode.cn",
|
||||
apiKeyUrl: "https://www.openclaudecode.cn/register?aff=aOYQ",
|
||||
websiteUrl: "https://www.micuapi.ai",
|
||||
apiKeyUrl: "https://www.micuapi.ai/register?aff=aOYQ",
|
||||
settingsConfig: {
|
||||
baseUrl: "https://www.openclaudecode.cn",
|
||||
baseUrl: "https://www.micuapi.ai",
|
||||
apiKey: "",
|
||||
api: "anthropic-messages",
|
||||
models: [
|
||||
|
||||
@@ -1302,13 +1302,13 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
{
|
||||
name: "Micu",
|
||||
websiteUrl: "https://www.openclaudecode.cn",
|
||||
apiKeyUrl: "https://www.openclaudecode.cn/register?aff=aOYQ",
|
||||
websiteUrl: "https://www.micuapi.ai",
|
||||
apiKeyUrl: "https://www.micuapi.ai/register?aff=aOYQ",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/anthropic",
|
||||
name: "Micu",
|
||||
options: {
|
||||
baseURL: "https://www.openclaudecode.cn/v1",
|
||||
baseURL: "https://www.micuapi.ai/v1",
|
||||
apiKey: "",
|
||||
setCacheKey: true,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user