mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-31 02:51:21 +08:00
feat: add Micu partner provider preset for Claude, Codex, OpenClaw and OpenCode
- Add Micu provider presets with openclaudecode.cn endpoint - Register micu icon SVG in icon index with namespaced CSS classes - Rename miku.svg to micu.svg to match icon key - Add partnerPromotion.micu i18n keys for zh, en, ja locales
This commit is contained in:
@@ -572,6 +572,23 @@ export const providerPresets: ProviderPreset[] = [
|
||||
icon: "ucloud",
|
||||
iconColor: "#000000",
|
||||
},
|
||||
{
|
||||
name: "Micu",
|
||||
websiteUrl: "https://www.openclaudecode.cn",
|
||||
apiKeyUrl: "https://www.openclaudecode.cn",
|
||||
settingsConfig: {
|
||||
env: {
|
||||
ANTHROPIC_BASE_URL: "https://www.openclaudecode.cn",
|
||||
ANTHROPIC_AUTH_TOKEN: "",
|
||||
},
|
||||
},
|
||||
endpointCandidates: ["https://www.openclaudecode.cn"],
|
||||
category: "third_party",
|
||||
isPartner: true, // 合作伙伴
|
||||
partnerPromotionKey: "micu", // 促销信息 i18n key
|
||||
icon: "micu",
|
||||
iconColor: "#000000",
|
||||
},
|
||||
{
|
||||
name: "OpenRouter",
|
||||
websiteUrl: "https://openrouter.ai",
|
||||
|
||||
@@ -297,6 +297,23 @@ requires_openai_auth = true`,
|
||||
icon: "ucloud",
|
||||
iconColor: "#000000",
|
||||
},
|
||||
{
|
||||
name: "Micu",
|
||||
websiteUrl: "https://www.openclaudecode.cn",
|
||||
apiKeyUrl: "https://www.openclaudecode.cn/v1",
|
||||
auth: generateThirdPartyAuth(""),
|
||||
config: generateThirdPartyConfig(
|
||||
"micu",
|
||||
"https://www.openclaudecode.cn/v1",
|
||||
"gpt-5.4",
|
||||
),
|
||||
endpointCandidates: ["https://www.openclaudecode.cn/v1"],
|
||||
category: "third_party",
|
||||
isPartner: true, // 合作伙伴
|
||||
partnerPromotionKey: "micu", // 促销信息 i18n key
|
||||
icon: "micu",
|
||||
iconColor: "#000000",
|
||||
},
|
||||
{
|
||||
name: "OpenRouter",
|
||||
websiteUrl: "https://openrouter.ai",
|
||||
|
||||
@@ -1252,6 +1252,29 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [
|
||||
icon: "ucloud",
|
||||
iconColor: "#000000",
|
||||
},
|
||||
{
|
||||
name: "Micu",
|
||||
websiteUrl: "https://www.openclaudecode.cn",
|
||||
apiKeyUrl: "https://www.openclaudecode.cn",
|
||||
settingsConfig: {
|
||||
baseUrl: "https://www.openclaudecode.cn",
|
||||
apiKey: "",
|
||||
api: "anthropic-messages",
|
||||
models: [
|
||||
{
|
||||
id: "claude-opus-4-6",
|
||||
name: "Claude Opus 4.6",
|
||||
contextWindow: 200000,
|
||||
cost: { input: 5, output: 25 },
|
||||
},
|
||||
],
|
||||
},
|
||||
category: "third_party",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "micu",
|
||||
icon: "micu",
|
||||
iconColor: "#000000",
|
||||
},
|
||||
// ========== Cloud Providers ==========
|
||||
{
|
||||
name: "AWS Bedrock",
|
||||
|
||||
@@ -1246,6 +1246,35 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "Micu",
|
||||
websiteUrl: "https://www.openclaudecode.cn",
|
||||
apiKeyUrl: "https://www.openclaudecode.cn/v1",
|
||||
settingsConfig: {
|
||||
npm: "@ai-sdk/anthropic",
|
||||
name: "Micu",
|
||||
options: {
|
||||
baseURL: "https://www.openclaudecode.cn/v1",
|
||||
apiKey: "",
|
||||
},
|
||||
models: {
|
||||
"claude-opus-4-6": { name: "Claude Opus 4.6" },
|
||||
"claude-sonnet-4-6": { name: "Claude Sonnet 4.6" },
|
||||
},
|
||||
},
|
||||
category: "third_party",
|
||||
isPartner: true,
|
||||
partnerPromotionKey: "micu",
|
||||
icon: "micu",
|
||||
iconColor: "#000000",
|
||||
templateValues: {
|
||||
apiKey: {
|
||||
label: "API Key",
|
||||
placeholder: "",
|
||||
editorValue: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "AWS Bedrock",
|
||||
websiteUrl: "https://aws.amazon.com/bedrock/",
|
||||
|
||||
Reference in New Issue
Block a user