diff --git a/src/config/claudeDesktopProviderPresets.ts b/src/config/claudeDesktopProviderPresets.ts index 5d74ae4ad..e525dbdfb 100644 --- a/src/config/claudeDesktopProviderPresets.ts +++ b/src/config/claudeDesktopProviderPresets.ts @@ -438,6 +438,26 @@ export const claudeDesktopProviderPresets: ClaudeDesktopProviderPreset[] = [ isPartner: true, partnerPromotionKey: "volcengine_agentplan", }, + { + name: "BytePlus", + websiteUrl: + "https://www.byteplus.com/en/product/modelark?utm_campaign=hw&utm_content=ccswitch&utm_medium=devrel_tool_web&utm_source=OWO&utm_term=ccswitch", + apiKeyUrl: + "https://www.byteplus.com/en/product/modelark?utm_campaign=hw&utm_content=ccswitch&utm_medium=devrel_tool_web&utm_source=OWO&utm_term=ccswitch", + category: "cn_official", + baseUrl: "https://ark.ap-southeast.bytepluses.com/api/coding", + mode: "proxy", + apiFormat: "anthropic", + modelRoutes: brandedRoutes( + "ark-code-latest", + "ark-code-latest", + "ark-code-latest", + ), + icon: "byteplus", + iconColor: "#3370FF", + isPartner: true, + partnerPromotionKey: "byteplus", + }, { name: "BaiLing", websiteUrl: "https://alipaytbox.yuque.com/sxs0ba/ling/get_started", diff --git a/src/config/claudeProviderPresets.ts b/src/config/claudeProviderPresets.ts index 9d6453526..47c35b506 100644 --- a/src/config/claudeProviderPresets.ts +++ b/src/config/claudeProviderPresets.ts @@ -456,6 +456,28 @@ export const providerPresets: ProviderPreset[] = [ icon: "huoshan", iconColor: "#3370FF", }, + { + name: "BytePlus", + websiteUrl: + "https://www.byteplus.com/en/product/modelark?utm_campaign=hw&utm_content=ccswitch&utm_medium=devrel_tool_web&utm_source=OWO&utm_term=ccswitch", + apiKeyUrl: + "https://www.byteplus.com/en/product/modelark?utm_campaign=hw&utm_content=ccswitch&utm_medium=devrel_tool_web&utm_source=OWO&utm_term=ccswitch", + settingsConfig: { + env: { + ANTHROPIC_BASE_URL: "https://ark.ap-southeast.bytepluses.com/api/coding", + ANTHROPIC_AUTH_TOKEN: "", + ANTHROPIC_MODEL: "ark-code-latest", + ANTHROPIC_DEFAULT_HAIKU_MODEL: "ark-code-latest", + ANTHROPIC_DEFAULT_SONNET_MODEL: "ark-code-latest", + ANTHROPIC_DEFAULT_OPUS_MODEL: "ark-code-latest", + }, + }, + category: "cn_official", + isPartner: true, + partnerPromotionKey: "byteplus", + icon: "byteplus", + iconColor: "#3370FF", + }, { name: "BaiLing", websiteUrl: "https://alipaytbox.yuque.com/sxs0ba/ling/get_started", diff --git a/src/config/hermesProviderPresets.ts b/src/config/hermesProviderPresets.ts index e44fb9f75..1cc0cdb27 100644 --- a/src/config/hermesProviderPresets.ts +++ b/src/config/hermesProviderPresets.ts @@ -591,6 +591,36 @@ export const hermesProviderPresets: HermesProviderPreset[] = [ }, }, }, + { + name: "BytePlus", + websiteUrl: + "https://www.byteplus.com/en/product/modelark?utm_campaign=hw&utm_content=ccswitch&utm_medium=devrel_tool_web&utm_source=OWO&utm_term=ccswitch", + apiKeyUrl: + "https://www.byteplus.com/en/product/modelark?utm_campaign=hw&utm_content=ccswitch&utm_medium=devrel_tool_web&utm_source=OWO&utm_term=ccswitch", + settingsConfig: { + name: "byteplus", + base_url: "https://ark.ap-southeast.bytepluses.com/api/coding", + api_key: "", + api_mode: "anthropic_messages", + models: [ + { + id: "ark-code-latest", + name: "Ark Code Latest", + }, + ], + }, + category: "cn_official", + isPartner: true, + partnerPromotionKey: "byteplus", + icon: "byteplus", + iconColor: "#3370FF", + suggestedDefaults: { + model: { + default: "ark-code-latest", + provider: "byteplus", + }, + }, + }, { name: "BaiLing", websiteUrl: "https://alipaytbox.yuque.com/sxs0ba/ling/get_started", diff --git a/src/config/openclawProviderPresets.ts b/src/config/openclawProviderPresets.ts index 4460d280a..9db0af18a 100644 --- a/src/config/openclawProviderPresets.ts +++ b/src/config/openclawProviderPresets.ts @@ -641,7 +641,7 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [ { id: "ark-code-latest", name: "Ark Code Latest", - contextWindow: 128000, + contextWindow: 256000, }, ], }, @@ -664,6 +664,43 @@ export const openclawProviderPresets: OpenClawProviderPreset[] = [ }, }, }, + { + name: "BytePlus", + websiteUrl: + "https://www.byteplus.com/en/product/modelark?utm_campaign=hw&utm_content=ccswitch&utm_medium=devrel_tool_web&utm_source=OWO&utm_term=ccswitch", + apiKeyUrl: + "https://www.byteplus.com/en/product/modelark?utm_campaign=hw&utm_content=ccswitch&utm_medium=devrel_tool_web&utm_source=OWO&utm_term=ccswitch", + settingsConfig: { + baseUrl: "https://ark.ap-southeast.bytepluses.com/api/coding/v3", + apiKey: "", + api: "openai-completions", + models: [ + { + id: "ark-code-latest", + name: "Ark Code Latest", + contextWindow: 256000, + }, + ], + }, + category: "cn_official", + isPartner: true, + partnerPromotionKey: "byteplus", + icon: "byteplus", + iconColor: "#3370FF", + templateValues: { + apiKey: { + label: "API Key", + placeholder: "", + editorValue: "", + }, + }, + suggestedDefaults: { + model: { primary: "byteplus/ark-code-latest" }, + modelCatalog: { + "byteplus/ark-code-latest": { alias: "Ark Code" }, + }, + }, + }, { name: "BaiLing", websiteUrl: "https://alipaytbox.yuque.com/sxs0ba/ling/get_started", diff --git a/src/config/opencodeProviderPresets.ts b/src/config/opencodeProviderPresets.ts index 3d1f5656f..569e8b947 100644 --- a/src/config/opencodeProviderPresets.ts +++ b/src/config/opencodeProviderPresets.ts @@ -849,6 +849,39 @@ export const opencodeProviderPresets: OpenCodeProviderPreset[] = [ }, }, }, + { + name: "BytePlus", + websiteUrl: + "https://www.byteplus.com/en/product/modelark?utm_campaign=hw&utm_content=ccswitch&utm_medium=devrel_tool_web&utm_source=OWO&utm_term=ccswitch", + apiKeyUrl: + "https://www.byteplus.com/en/product/modelark?utm_campaign=hw&utm_content=ccswitch&utm_medium=devrel_tool_web&utm_source=OWO&utm_term=ccswitch", + settingsConfig: { + npm: "@ai-sdk/openai-compatible", + name: "BytePlus", + options: { + baseURL: "https://ark.ap-southeast.bytepluses.com/api/coding/v3", + apiKey: "", + setCacheKey: true, + }, + models: { + "ark-code-latest": { + name: "Ark Code Latest", + }, + }, + }, + category: "cn_official", + isPartner: true, + partnerPromotionKey: "byteplus", + icon: "byteplus", + iconColor: "#3370FF", + templateValues: { + apiKey: { + label: "API Key", + placeholder: "", + editorValue: "", + }, + }, + }, { name: "BaiLing", websiteUrl: "https://alipaytbox.yuque.com/sxs0ba/ling/get_started", diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index a2b1654d8..4579fc4d7 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -857,7 +857,8 @@ "shengsuanyun": "Shengsuanyun offers exclusive benefits for CC Switch users. New users who register via this link get ¥10 free credits and 10% bonus on first top-up!", "lemondata": "Lemon Code offers a special promotion for CC Switch users. Sign up via this link to receive $1 in free credits.", "doubaoseed": "DouBao offers exclusive benefits for CC Switch users: register via this link to get 500K tokens of inference credits for all DouBao text models and 5M tokens of free Seedance 2.0 credits.", - "volcengine_agentplan": "Volcengine Ark Agent Plan offers exclusive benefits for CC Switch users: subscribe via this link, starting from ¥40/month for new customers." + "volcengine_agentplan": "Volcengine Ark Agent Plan offers exclusive benefits for CC Switch users: subscribe via this link, starting from ¥40/month for new customers.", + "byteplus": "Register via this link to get 500,000 tokens of free inference quota per model." }, "presets": { "ucloud": "Compshare", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index ffd2d79a1..78995fd09 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -857,7 +857,8 @@ "shengsuanyun": "胜算云はCC Switchユーザーに特別特典を提供しています。このリンクから登録すると、10元分の無料クレジットと初回チャージ10%ボーナスがもらえます!", "lemondata": "Lemon Code は CC Switch ユーザー向けの特別オファーを提供しています。このリンクから登録すると 1 ドル分の無料クレジットがもらえます。", "doubaoseed": "豆包大モデルは CC Switch ユーザーに専属特典を提供しています:このリンクから登録すると、豆包全テキストモデル50万トークンの推論クレジットおよびSeedance2.0の500万トークン無料クレジットがもらえます。", - "volcengine_agentplan": "火山方舟 Agent Plan は CC Switch ユーザーに専属特典を提供しています:このリンクから方舟AgentPlanを購読すると、新規のお客様は初月40元から利用できます。" + "volcengine_agentplan": "火山方舟 Agent Plan は CC Switch ユーザーに専属特典を提供しています:このリンクから方舟AgentPlanを購読すると、新規のお客様は初月40元から利用できます。", + "byteplus": "このリンクから登録すると、各モデルごとに50万トークンの無料推論クォータがもらえます。" }, "presets": { "ucloud": "Compshare", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index b02865953..c585494f8 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -857,7 +857,8 @@ "shengsuanyun": "胜算云为 CC Switch 的用户提供了特别福利,使用此链接注册的新用户可获 10 元模力及首充 10% 赠送!", "lemondata": "Lemon Code 为 CC Switch 的用户提供了特别优惠。使用此链接注册可以获得1美元免费额度。", "doubaoseed": "豆包大模型为 CC Switch 的用户提供了专属福利:通过此链接注册即可获取豆包全系列文本模型 50万tokens推理额度以及Seedance2.0的500万tokens免费额度", - "volcengine_agentplan": "火山方舟 Agent Plan 为 CC Switch 的用户提供了专属福利:通过此链接订阅方舟AgentPlan,新客户首月40元起。" + "volcengine_agentplan": "火山方舟 Agent Plan 为 CC Switch 的用户提供了专属福利:通过此链接订阅方舟AgentPlan,新客户首月40元起。", + "byteplus": "通过此链接注册即可获取每个模型50万tokens的免费推理额度。" }, "presets": { "ucloud": "优云智算", diff --git a/src/icons/extracted/byteplus.png b/src/icons/extracted/byteplus.png new file mode 100644 index 000000000..d758e8bd6 Binary files /dev/null and b/src/icons/extracted/byteplus.png differ diff --git a/src/icons/extracted/index.ts b/src/icons/extracted/index.ts index 273f40df5..39a04d7f8 100644 --- a/src/icons/extracted/index.ts +++ b/src/icons/extracted/index.ts @@ -2,6 +2,7 @@ // Do not edit manually import _claudeapi from "./ClaudeApi.png"; +import _byteplus from "./byteplus.png"; import _claudecn from "./claudecn.png"; import _eflowcode from "./eflowcode.png"; import _hermes from "./hermes.png"; @@ -86,6 +87,7 @@ export const icons: Record = { }; export const iconUrls: Record = { + byteplus: _byteplus, claudeapi: _claudeapi, claudecn: _claudecn, eflowcode: _eflowcode, diff --git a/src/icons/extracted/metadata.ts b/src/icons/extracted/metadata.ts index ffbc11222..9b9311377 100644 --- a/src/icons/extracted/metadata.ts +++ b/src/icons/extracted/metadata.ts @@ -65,6 +65,13 @@ export const iconMetadata: Record = { keywords: ["huoshan", "volcengine", "ark", "agentplan", "byteplus"], defaultColor: "#3370FF", }, + byteplus: { + name: "byteplus", + displayName: "BytePlus", + category: "ai-provider", + keywords: ["byteplus", "volcengine", "ark", "modelark"], + defaultColor: "#3370FF", + }, chatglm: { name: "chatglm", displayName: "chatglm",