From 7eac809689096a377274af751b3adfc673687125 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 28 Nov 2025 22:27:23 +0800 Subject: [PATCH] feat(preset): add MiniMax international version and split promotions - Add MiniMax en preset with international API endpoint (minimaxi.io) - Split MiniMax partner promotion into CN and EN versions - Remove unnecessary icon config from Aliyun and Alibaba Lingma presets --- src/config/claudeProviderPresets.ts | 36 +++++++++++++++++++++++------ src/i18n/locales/en.json | 3 ++- src/i18n/locales/ja.json | 3 ++- src/i18n/locales/zh.json | 3 ++- 4 files changed, 35 insertions(+), 10 deletions(-) diff --git a/src/config/claudeProviderPresets.ts b/src/config/claudeProviderPresets.ts index e4fc64271..72e13c0a0 100644 --- a/src/config/claudeProviderPresets.ts +++ b/src/config/claudeProviderPresets.ts @@ -184,9 +184,7 @@ export const providerPresets: ProviderPreset[] = [ ANTHROPIC_DEFAULT_OPUS_MODEL: "ZhipuAI/GLM-4.6", }, }, - category: "aggregator", - icon: "alibaba", - iconColor: "#FF6A00", + category: "aggregator" }, { name: "KAT-Coder", @@ -249,7 +247,33 @@ export const providerPresets: ProviderPreset[] = [ }, category: "cn_official", isPartner: true, - partnerPromotionKey: "minimax", + partnerPromotionKey: "minimax_cn", + theme: { + backgroundColor: "#f64551", + textColor: "#FFFFFF", + }, + icon: "minimax", + iconColor: "#FF6B6B", + }, + { + name: "MiniMax en", + websiteUrl: "https://platform.minimaxi.io", + apiKeyUrl: "https://platform.minimax.io/subscribe/coding-plan", + settingsConfig: { + env: { + ANTHROPIC_BASE_URL: "https://api.minimaxi.io/anthropic", + ANTHROPIC_AUTH_TOKEN: "", + API_TIMEOUT_MS: "3000000", + CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC: 1, + ANTHROPIC_MODEL: "MiniMax-M2", + ANTHROPIC_DEFAULT_SONNET_MODEL: "MiniMax-M2", + ANTHROPIC_DEFAULT_OPUS_MODEL: "MiniMax-M2", + ANTHROPIC_DEFAULT_HAIKU_MODEL: "MiniMax-M2", + }, + }, + category: "cn_official", + isPartner: true, + partnerPromotionKey: "minimax_en", theme: { backgroundColor: "#f64551", textColor: "#FFFFFF", @@ -289,9 +313,7 @@ export const providerPresets: ProviderPreset[] = [ ANTHROPIC_DEFAULT_OPUS_MODEL: "Ling-1T", }, }, - category: "cn_official", - icon: "alibaba", - iconColor: "#FF6A00", + category: "cn_official" }, { name: "AiHubMix", diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index dc8ed69e1..1e2f26b34 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -263,7 +263,8 @@ "partnerPromotion": { "zhipu": "Zhipu GLM is an official partner of CC Switch. Use this link to top up and get a 10% discount", "packycode": "PackyCode is an official partner of CC Switch. Register using this link and enter \"cc-switch\" promo code during recharge to get 10% off", - "minimax": "MiniMax Coding Plan Black Friday, Starter is now $2/mo (80% OFF!)" + "minimax_cn": "MiniMax Coding Plan Special Offer, Starter from ¥9.9", + "minimax_en": "MiniMax Coding Plan Black Friday, Starter is now $2/mo (80% OFF!)" }, "parameterConfig": "Parameter Config - {{name}} *", "mainModel": "Main Model (optional)", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 5a5394ad5..abc800a46 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -263,7 +263,8 @@ "partnerPromotion": { "zhipu": "Zhipu GLM は CC Switch の公式パートナーです。リンク経由でチャージすると 10% 割引", "packycode": "PackyCode は CC Switch の公式パートナーです。登録後チャージ時に \"cc-switch\" を入力すると 10% オフ", - "minimax": "MiniMax Coding Plan Black Friday、Starter が月額 $2(80% OFF)" + "minimax_cn": "MiniMax Coding Plan 特別価格、Starter ¥9.9 から", + "minimax_en": "MiniMax Coding Plan Black Friday、Starter が月額 $2(80% OFF)" }, "parameterConfig": "パラメーター設定 - {{name}} *", "mainModel": "メインモデル(任意)", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index e6b10ac76..d6c4c85eb 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -263,7 +263,8 @@ "partnerPromotion": { "zhipu": "智谱 GLM 是 CC Switch 的官方合作伙伴,使用此链接充值可以获得9折优惠", "packycode": "PackyCode 是 CC Switch 的官方合作伙伴,使用此链接注册并在充值时填写 \"cc-switch\" 优惠码,可以享受9折优惠", - "minimax": "MiniMax Coding Plan 黑五特惠,Starter 套餐现仅 $2/月(2折优惠!)" + "minimax_cn": "MiniMax Coding Plan 特惠,Starter 套餐 9.9 元起", + "minimax_en": "MiniMax Coding Plan 黑五特惠,Starter 套餐现仅 $2/月(2折优惠!)" }, "parameterConfig": "参数配置 - {{name}} *", "mainModel": "主模型 (可选)",