From e18db317529be6b46e1ca29ef363586b0aa64205 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 6 Mar 2026 21:49:31 +0800 Subject: [PATCH] feat: add partner badge for SiliconFlow provider presets --- src/config/claudeProviderPresets.ts | 4 ++++ src/config/openclawProviderPresets.ts | 4 ++++ src/i18n/locales/en.json | 3 ++- src/i18n/locales/ja.json | 3 ++- src/i18n/locales/zh.json | 3 ++- 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/config/claudeProviderPresets.ts b/src/config/claudeProviderPresets.ts index a095f631a..3d831dc3e 100644 --- a/src/config/claudeProviderPresets.ts +++ b/src/config/claudeProviderPresets.ts @@ -359,6 +359,8 @@ export const providerPresets: ProviderPreset[] = [ }, }, category: "aggregator", + isPartner: true, + partnerPromotionKey: "siliconflow", icon: "siliconflow", iconColor: "#6E29F6", }, @@ -377,6 +379,8 @@ export const providerPresets: ProviderPreset[] = [ }, }, category: "aggregator", + isPartner: true, + partnerPromotionKey: "siliconflow", icon: "siliconflow", iconColor: "#000000", }, diff --git a/src/config/openclawProviderPresets.ts b/src/config/openclawProviderPresets.ts index 9469bb32a..a13b264c2 100644 --- a/src/config/openclawProviderPresets.ts +++ b/src/config/openclawProviderPresets.ts @@ -736,6 +736,8 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [ ], }, category: "aggregator", + isPartner: true, + partnerPromotionKey: "siliconflow", icon: "siliconflow", iconColor: "#6E29F6", templateValues: { @@ -770,6 +772,8 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [ ], }, category: "aggregator", + isPartner: true, + partnerPromotionKey: "siliconflow", icon: "siliconflow", iconColor: "#000000", templateValues: { diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 745e6d207..e9dee9fd4 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -668,7 +668,8 @@ "aicodemirror": "AICodeMirror is an official partner of CC Switch. Register using this link to get 20% off!", "aicoding": "AI Coding offers an exclusive discount for CC Switch users — 10% off your first top-up!", "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!" + "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" }, "parameterConfig": "Parameter Config - {{name}} *", "mainModel": "Main Model (optional)", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 8c77be51c..4d3defa7d 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -668,7 +668,8 @@ "aicodemirror": "AICodeMirror は CC Switch の公式パートナーです。このリンクから登録すると20%オフ!", "aicoding": "AI Coding は CC Switch ユーザー向けに特別割引を提供しています。初回チャージが 10% オフ!", "crazyrouter": "CrazyRouter は CC Switch ユーザー向けに特別ボーナスを提供しています。初回チャージで 30% の追加クレジットがもらえます!", - "sssaicode": "SSAI Code は CC Switch ユーザー向けに特別ボーナスを提供しています。チャージごとに $10 の追加クレジットがもらえます!" + "sssaicode": "SSAI Code は CC Switch ユーザー向けに特別ボーナスを提供しています。チャージごとに $10 の追加クレジットがもらえます!", + "siliconflow": "SiliconFlow は CC Switch の公式パートナーです" }, "parameterConfig": "パラメーター設定 - {{name}} *", "mainModel": "メインモデル(任意)", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 41fef29a6..7acdc881b 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -668,7 +668,8 @@ "aicodemirror": "AICodeMirror 是 CC Switch 的官方合作伙伴,使用此链接注册可享受8折优惠!", "aicoding": "AI Coding 为 CC Switch 的用户提供了特殊优惠,首次充值可以享受 9 折优惠!", "crazyrouter": "CrazyRouter 为 CC Switch 的用户提供了特殊优惠,首次充值赠予 30% 额外额度!", - "sssaicode": "SSAI Code 为 CC Switch 的用户提供了特殊优惠,每次充值赠予额外 $10 额度!" + "sssaicode": "SSAI Code 为 CC Switch 的用户提供了特殊优惠,每次充值赠予额外 $10 额度!", + "siliconflow": "硅基流动是 CC Switch 的官方合作伙伴" }, "parameterConfig": "参数配置 - {{name}} *", "mainModel": "主模型 (可选)",