diff --git a/README.md b/README.md index 7f5e9a3bf..affb1cbe8 100644 --- a/README.md +++ b/README.md @@ -56,8 +56,8 @@ Claude Code / Codex / Gemini official channels at 38% / 2% / 9% of original pric -Ucloud -Thanks to UCloud CompShare for sponsoring this project! CompShare is UCloud's AI cloud platform, providing stable and comprehensive domestic and international model APIs with just one key. Featuring cost-effective monthly and pay-as-you-go Coding Plan packages at 60-80% off official prices. Supports Claude Code, Codex, and API access. Enterprise-grade high concurrency, 24/7 technical support, and self-service invoicing. Users who register via this link will receive a free 5 CNY platform trial credit! +Compshare +Thanks to Compshare for sponsoring this project! Compshare is UCloud's AI cloud platform, providing stable and comprehensive domestic and international model APIs with just one key. Featuring cost-effective monthly and pay-as-you-go Coding Plan packages at 60-80% off official prices. Supports Claude Code, Codex, and API access. Enterprise-grade high concurrency, 24/7 technical support, and self-service invoicing. Users who register via this link will receive a free 5 CNY platform trial credit! diff --git a/README_JA.md b/README_JA.md index 48b11dad8..a3282f639 100644 --- a/README_JA.md +++ b/README_JA.md @@ -56,8 +56,8 @@ Claude Code / Codex / Gemini 公式チャンネルが最安で元価格の 38% / -Ucloud -UCloud CompShare のご支援に感謝します!CompShare は UCloud 傘下の AI クラウドプラットフォームで、国内外の安定した包括的なモデル API を 1 つのキーだけで利用可能。月額・従量課金のコストパフォーマンスに優れた Coding Plan パッケージを提供し、公式価格の 60〜80% オフで利用できます。Claude Code、Codex および API アクセスに対応。エンタープライズ級の高同時接続、24 時間年中無休のテクニカルサポート、セルフサービス請求書発行に対応。こちらのリンクから登録すると、無料で 5 元分のプラットフォーム体験クレジットがもらえます! +Compshare +Compshare のご支援に感謝します!Compshare は UCloud 傘下の AI クラウドプラットフォームで、国内外の安定した包括的なモデル API を 1 つのキーだけで利用可能。月額・従量課金のコストパフォーマンスに優れた Coding Plan パッケージを提供し、公式価格の 60〜80% オフで利用できます。Claude Code、Codex および API アクセスに対応。エンタープライズ級の高同時接続、24 時間年中無休のテクニカルサポート、セルフサービス請求書発行に対応。こちらのリンクから登録すると、無料で 5 元分のプラットフォーム体験クレジットがもらえます! diff --git a/README_ZH.md b/README_ZH.md index 5a24c6f5e..db2a60d1b 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -57,7 +57,7 @@ Claude Code / Codex / Gemini 官方渠道低至 3.8 / 0.2 / 0.9 折,充值更 -Ucloud +优云智算 感谢优云智算赞助了本项目!优云智算是UCloud旗下AI云平台,提供稳定、全面的国内外模型API,仅一个key即可调用。主打包月、按量的高性价比 Coding Plan 套餐,基于官方2~5折优惠。支持接入 Claude Code、Codex 及 API 调用。支持企业高并发、7*24技术支持、自助开票。通过此链接注册的用户,可得免费5元平台体验金! diff --git a/src/components/providers/forms/ProviderForm.tsx b/src/components/providers/forms/ProviderForm.tsx index 98d279a92..fa237b7c4 100644 --- a/src/components/providers/forms/ProviderForm.tsx +++ b/src/components/providers/forms/ProviderForm.tsx @@ -1033,7 +1033,7 @@ export function ProviderForm({ resetCodexConfig(auth, config); form.reset({ - name: preset.name, + name: preset.nameKey ? t(preset.nameKey) : preset.name, websiteUrl: preset.websiteUrl ?? "", settingsConfig: JSON.stringify({ auth, config }, null, 2), icon: preset.icon ?? "", @@ -1050,7 +1050,7 @@ export function ProviderForm({ resetGeminiConfig(env, config); form.reset({ - name: preset.name, + name: preset.nameKey ? t(preset.nameKey) : preset.name, websiteUrl: preset.websiteUrl ?? "", settingsConfig: JSON.stringify(preset.settingsConfig, null, 2), icon: preset.icon ?? "", @@ -1078,7 +1078,7 @@ export function ProviderForm({ opencodeForm.resetOpencodeState(config); form.reset({ - name: preset.name, + name: preset.nameKey ? t(preset.nameKey) : preset.name, websiteUrl: preset.websiteUrl ?? "", settingsConfig: JSON.stringify(config, null, 2), icon: preset.icon ?? "", @@ -1105,7 +1105,7 @@ export function ProviderForm({ // Update form fields form.reset({ - name: preset.name, + name: preset.nameKey ? t(preset.nameKey) : preset.name, websiteUrl: preset.websiteUrl ?? "", settingsConfig: JSON.stringify(config, null, 2), icon: preset.icon ?? "", @@ -1129,7 +1129,7 @@ export function ProviderForm({ setLocalApiKeyField(preset.apiKeyField ?? "ANTHROPIC_AUTH_TOKEN"); form.reset({ - name: preset.name, + name: preset.nameKey ? t(preset.nameKey) : preset.name, websiteUrl: preset.websiteUrl ?? "", settingsConfig: JSON.stringify(config, null, 2), icon: preset.icon ?? "", diff --git a/src/components/providers/forms/ProviderPresetSelector.tsx b/src/components/providers/forms/ProviderPresetSelector.tsx index 4ec882c22..7a97b480b 100644 --- a/src/components/providers/forms/ProviderPresetSelector.tsx +++ b/src/components/providers/forms/ProviderPresetSelector.tsx @@ -159,7 +159,9 @@ export function ProviderPresetSelector({ } > {renderPresetIcon(entry.preset)} - {entry.preset.name} + {entry.preset.nameKey + ? t(entry.preset.nameKey) + : entry.preset.name} {isPartner && ( diff --git a/src/config/claudeProviderPresets.ts b/src/config/claudeProviderPresets.ts index dda4ef47d..d249d9404 100644 --- a/src/config/claudeProviderPresets.ts +++ b/src/config/claudeProviderPresets.ts @@ -24,6 +24,7 @@ export interface PresetTheme { export interface ProviderPreset { name: string; + nameKey?: string; // i18n key for localized display name websiteUrl: string; // 新增:第三方/聚合等可单独配置获取 API Key 的链接 apiKeyUrl?: string; @@ -573,7 +574,8 @@ export const providerPresets: ProviderPreset[] = [ iconColor: "#000000", }, { - name: "Ucloud", + name: "Compshare", + nameKey: "providerForm.presets.ucloud", websiteUrl: "https://www.compshare.cn", apiKeyUrl: "https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch", diff --git a/src/config/codexProviderPresets.ts b/src/config/codexProviderPresets.ts index 9beac2c56..553080e5c 100644 --- a/src/config/codexProviderPresets.ts +++ b/src/config/codexProviderPresets.ts @@ -6,6 +6,7 @@ import type { PresetTheme } from "./claudeProviderPresets"; export interface CodexProviderPreset { name: string; + nameKey?: string; // i18n key for localized display name websiteUrl: string; // 第三方供应商可提供单独的获取 API Key 链接 apiKeyUrl?: string; @@ -281,13 +282,14 @@ requires_openai_auth = true`, iconColor: "#000000", }, { - name: "Ucloud", + name: "Compshare", + nameKey: "providerForm.presets.ucloud", websiteUrl: "https://www.compshare.cn", apiKeyUrl: "https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch", auth: generateThirdPartyAuth(""), config: generateThirdPartyConfig( - "ucloud", + "compshare", "https://api.modelverse.cn/v1", "gpt-5.4", ), diff --git a/src/config/geminiProviderPresets.ts b/src/config/geminiProviderPresets.ts index 62ae00653..587bcf658 100644 --- a/src/config/geminiProviderPresets.ts +++ b/src/config/geminiProviderPresets.ts @@ -14,6 +14,7 @@ export interface GeminiPresetTheme { export interface GeminiProviderPreset { name: string; + nameKey?: string; // i18n key for localized display name websiteUrl: string; apiKeyUrl?: string; settingsConfig: object; diff --git a/src/config/openclawProviderPresets.ts b/src/config/openclawProviderPresets.ts index d20b55bae..586af1e8d 100644 --- a/src/config/openclawProviderPresets.ts +++ b/src/config/openclawProviderPresets.ts @@ -19,6 +19,7 @@ export interface OpenClawSuggestedDefaults { export interface OpenClawProviderPreset { name: string; + nameKey?: string; // i18n key for localized display name websiteUrl: string; apiKeyUrl?: string; /** OpenClaw settings_config structure */ @@ -1264,7 +1265,8 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [ }, }, { - name: "Ucloud", + name: "Compshare", + nameKey: "providerForm.presets.ucloud", websiteUrl: "https://www.compshare.cn", apiKeyUrl: "https://www.compshare.cn/coding-plan?ytag=GPU_YY_YX_git_cc-switch", @@ -1295,10 +1297,10 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [ }, suggestedDefaults: { model: { - primary: "ucloud/claude-opus-4-6", + primary: "compshare/claude-opus-4-6", }, modelCatalog: { - "ucloud/claude-opus-4-6": { alias: "Opus" }, + "compshare/claude-opus-4-6": { alias: "Opus" }, }, }, }, diff --git a/src/config/opencodeProviderPresets.ts b/src/config/opencodeProviderPresets.ts index 62d62303f..cfd233ee3 100644 --- a/src/config/opencodeProviderPresets.ts +++ b/src/config/opencodeProviderPresets.ts @@ -3,6 +3,7 @@ import type { PresetTheme, TemplateValueConfig } from "./claudeProviderPresets"; export interface OpenCodeProviderPreset { name: string; + nameKey?: string; // i18n key for localized display name websiteUrl: string; apiKeyUrl?: string; settingsConfig: OpenCodeProviderConfig; diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index a57a3a51b..70fe4fba0 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -706,10 +706,13 @@ "crazyrouter": "CrazyRouter offers an exclusive bonus for CC Switch users — 30% extra credit on your first top-up!", "sssaicode": "SSAI Code offers an exclusive bonus for CC Switch users — $10 extra credit on every top-up!", "siliconflow": "SiliconFlow is an official partner of CC Switch", - "ucloud": "UCloud offers an exclusive bonus for CC Switch users — register via this link to get ¥5 platform trial credit!", + "ucloud": "Compshare offers an exclusive bonus for CC Switch users — register via this link to get ¥5 platform trial credit!", "micu": "Micu is an official partner of CC Switch", "x-code": "XCodeAPI offers a special bonus for CC Switch users — register via this link and get 10% extra credit on your first order (contact admin to claim)" }, + "presets": { + "ucloud": "Compshare" + }, "parameterConfig": "Parameter Config - {{name}} *", "mainModel": "Main Model (optional)", "mainModelPlaceholder": "e.g., GLM-4.6", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 8567919d0..3ecc33191 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -706,10 +706,13 @@ "crazyrouter": "CrazyRouter は CC Switch ユーザー向けに特別ボーナスを提供しています。初回チャージで 30% の追加クレジットがもらえます!", "sssaicode": "SSAI Code は CC Switch ユーザー向けに特別ボーナスを提供しています。チャージごとに $10 の追加クレジットがもらえます!", "siliconflow": "SiliconFlow は CC Switch の公式パートナーです", - "ucloud": "UCloud は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、5元のプラットフォーム体験クレジットがもらえます!", + "ucloud": "Compshare は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、5元のプラットフォーム体験クレジットがもらえます!", "micu": "Micu は CC Switch の公式パートナーです", "x-code": "XCodeAPI は CC Switch ユーザー向けに特別ボーナスを提供しています。このリンクから登録すると、初回注文で 10% の追加クレジットがもらえます(管理者に連絡して受け取り)" }, + "presets": { + "ucloud": "Compshare" + }, "parameterConfig": "パラメーター設定 - {{name}} *", "mainModel": "メインモデル(任意)", "mainModelPlaceholder": "例: GLM-4.6", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 449ccee3f..44d1cb947 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -710,6 +710,9 @@ "micu": "Micu 是 CC Switch 的官方合作伙伴", "x-code": "XCodeAPI 为CC Switch 的用户提供特别福利,使用此链接注册后首单加赠10%的额度(联系站长领取)" }, + "presets": { + "ucloud": "优云智算" + }, "parameterConfig": "参数配置 - {{name}} *", "mainModel": "主模型 (可选)", "mainModelPlaceholder": "例如: GLM-4.6",