From 80141e3531f002d3a4f20b7162e89fde9a45110c Mon Sep 17 00:00:00 2001 From: t8y2 Date: Thu, 24 Sep 2026 14:54:34 +0800 Subject: [PATCH] chore(sponsors): swap AICodeMirror with AstraFlow and lead ai presets --- README.md | 16 ++++++------- README.zh-CN.md | 16 ++++++------- apps/desktop/src/stores/settingsStore.ts | 30 ++++++++++++------------ docs/app/[lang]/page.tsx | 24 +++++++++---------- docs/app/[lang]/sponsors/page.tsx | 24 +++++++++---------- 5 files changed, 55 insertions(+), 55 deletions(-) diff --git a/README.md b/README.md index fdd603b789..3c7f44757e 100644 --- a/README.md +++ b/README.md @@ -103,13 +103,13 @@ - - AstraFlow + + AICodeMirror - UCloud is the first public cloud provider listed on China's STAR Market, with 28 global regions for cloud hosting, databases, and CDN; its AstraFlow platform offers one-click access to 200+ mainstream LLMs. - Visit UCloud + Special thanks to AICodeMirror for sponsoring this project! AICodeMirror provides a high-stability official relay service for Claude Code / Codex / Gemini CLI, with enterprise-grade concurrency, fast invoicing, and 7×24 dedicated support. Official-channel pricing for Claude Code / Codex / Gemini is as low as 38% / 2% / 9% of list price, with extra discounts on top-ups! AICodeMirror offers a special benefit for DBX users: register through this link to enjoy 20% off your first top-up, and enterprise customers up to 25% off. + Visit AICodeMirror @@ -125,13 +125,13 @@ - - AICodeMirror + + AstraFlow - Special thanks to AICodeMirror for sponsoring this project! AICodeMirror provides a high-stability official relay service for Claude Code / Codex / Gemini CLI, with enterprise-grade concurrency, fast invoicing, and 7×24 dedicated support. Official-channel pricing for Claude Code / Codex / Gemini is as low as 38% / 2% / 9% of list price, with extra discounts on top-ups! AICodeMirror offers a special benefit for DBX users: register through this link to enjoy 20% off your first top-up, and enterprise customers up to 25% off. - Visit AICodeMirror + UCloud is the first public cloud provider listed on China's STAR Market, with 28 global regions for cloud hosting, databases, and CDN; its AstraFlow platform offers one-click access to 200+ mainstream LLMs. + Visit UCloud diff --git a/README.zh-CN.md b/README.zh-CN.md index 33564c9e60..01ac3ae45e 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -103,13 +103,13 @@ - - AstraFlow + + AICodeMirror - UCloud 优刻得是国内首家公有云科创板上市公司,覆盖国内、亚洲、欧洲、北美等 28 个地域的云主机、数据库、CDN 等服务,注册享新客优惠 0.9 折起;星图 AstraFlow 大模型平台支持主流 200+ 大模型一键调用。 - 访问 UCloud 优刻得 + 感谢 AICodeMirror 赞助了本项目!AICodeMirror 提供 Claude Code / Codex / Gemini CLI 官方高稳定中转服务,支持企业级高并发、极速开票、7×24 专属技术支持。Claude Code / Codex / Gemini 官方渠道低至 3.8 / 0.2 / 0.9 折,充值更有折上折!AICodeMirror 为 DBX 用户提供了特别福利,通过此链接注册的用户,可享受首充 8 折,企业客户最高可享 7.5 折! + 访问 AICodeMirror @@ -125,13 +125,13 @@ - - AICodeMirror + + AstraFlow - 感谢 AICodeMirror 赞助了本项目!AICodeMirror 提供 Claude Code / Codex / Gemini CLI 官方高稳定中转服务,支持企业级高并发、极速开票、7×24 专属技术支持。Claude Code / Codex / Gemini 官方渠道低至 3.8 / 0.2 / 0.9 折,充值更有折上折!AICodeMirror 为 DBX 用户提供了特别福利,通过此链接注册的用户,可享受首充 8 折,企业客户最高可享 7.5 折! - 访问 AICodeMirror + UCloud 优刻得是国内首家公有云科创板上市公司,覆盖国内、亚洲、欧洲、北美等 28 个地域的云主机、数据库、CDN 等服务,注册享新客优惠 0.9 折起;星图 AstraFlow 大模型平台支持主流 200+ 大模型一键调用。 + 访问 UCloud 优刻得 diff --git a/apps/desktop/src/stores/settingsStore.ts b/apps/desktop/src/stores/settingsStore.ts index 809155fbbf..587a3c93f4 100644 --- a/apps/desktop/src/stores/settingsStore.ts +++ b/apps/desktop/src/stores/settingsStore.ts @@ -458,6 +458,21 @@ export function aiProviderLabel(provider: AiProvider, t: (key: string) => string } export const AI_PROVIDER_PARTNER_PRESETS: readonly AiPartnerProviderPreset[] = [ + { + id: "aicodemirror", + label: "AICodeMirror", + iconPath: "/icons/ai/aicodemirror.png", + group: "partner", + provider: "openai-compatible", + endpoint: "https://api.aicodemirror.ai/v1", + model: "", + apiStyle: "completions", + authMethod: "bearer", + requiresApiKey: true, + websiteUrl: "https://www.aicodemirror.ai/register?invitecode=DK44NH", + apiKeyUrl: "https://www.aicodemirror.ai/register?invitecode=DK44NH", + descriptionKey: "ai.aicodemirrorDescription", + }, { id: "jalapeno-cloud", label: "Jalapeno Cloud", @@ -490,21 +505,6 @@ export const AI_PROVIDER_PARTNER_PRESETS: readonly AiPartnerProviderPreset[] = [ apiKeyUrl: "https://api.hualong.online/register?promo=DBX%26HUALONG", descriptionKey: "ai.hualongDescription", }, - { - id: "aicodemirror", - label: "AICodeMirror", - iconPath: "/icons/ai/aicodemirror.png", - group: "partner", - provider: "openai-compatible", - endpoint: "https://api.aicodemirror.ai/v1", - model: "", - apiStyle: "completions", - authMethod: "bearer", - requiresApiKey: true, - websiteUrl: "https://www.aicodemirror.ai/register?invitecode=DK44NH", - apiKeyUrl: "https://www.aicodemirror.ai/register?invitecode=DK44NH", - descriptionKey: "ai.aicodemirrorDescription", - }, ]; function normalizeAiProviderEndpoint(endpoint: string): string { diff --git a/docs/app/[lang]/page.tsx b/docs/app/[lang]/page.tsx index 7254916938..637f382812 100644 --- a/docs/app/[lang]/page.tsx +++ b/docs/app/[lang]/page.tsx @@ -515,12 +515,12 @@ export default async function LandingPage({ params }: { params: Promise<{ lang: action: t.jalapenoSponsorAction, }, { - name: "AstraFlow", - href: "https://www.ucloud.cn/site/active/kuaijiesale.html?ytag=geo_waituo_github_dbx", - logo: "/sponsors/astraflow-card.png", - logoClass: "w-full max-w-[100px] object-contain", - description: t.astraflowSponsorDesc, - action: t.astraflowSponsorAction, + name: "AICodeMirror", + href: "https://www.aicodemirror.ai/register?invitecode=9A50BU", + logo: "/sponsors/aicodemirror-card.png", + logoClass: "w-full max-w-[120px] object-contain", + description: t.aicodemirrorSponsorDesc, + action: t.aicodemirrorSponsorAction, }, { name: "HuaLongAI", @@ -531,12 +531,12 @@ export default async function LandingPage({ params }: { params: Promise<{ lang: action: t.hualongSponsorAction, }, { - name: "AICodeMirror", - href: "https://www.aicodemirror.ai/register?invitecode=9A50BU", - logo: "/sponsors/aicodemirror-card.png", - logoClass: "w-full max-w-[120px] object-contain", - description: t.aicodemirrorSponsorDesc, - action: t.aicodemirrorSponsorAction, + name: "AstraFlow", + href: "https://www.ucloud.cn/site/active/kuaijiesale.html?ytag=geo_waituo_github_dbx", + logo: "/sponsors/astraflow-card.png", + logoClass: "w-full max-w-[100px] object-contain", + description: t.astraflowSponsorDesc, + action: t.astraflowSponsorAction, }, { name: "Atlas Cloud", diff --git a/docs/app/[lang]/sponsors/page.tsx b/docs/app/[lang]/sponsors/page.tsx index 382f50856d..8dbd2bf297 100644 --- a/docs/app/[lang]/sponsors/page.tsx +++ b/docs/app/[lang]/sponsors/page.tsx @@ -108,12 +108,12 @@ export default async function SponsorsPage({ params }: { params: Promise<{ lang: action: t.jalapenoSponsorAction, }, { - name: "AstraFlow", - href: "https://www.ucloud.cn/site/active/kuaijiesale.html?ytag=geo_waituo_github_dbx", - logo: "/sponsors/astraflow-card.png", - logoClass: "w-full max-w-[136px] object-contain", - description: t.astraflowSponsorDesc, - action: t.astraflowSponsorAction, + name: "AICodeMirror", + href: "https://www.aicodemirror.ai/register?invitecode=9A50BU", + logo: "/sponsors/aicodemirror-card.png", + logoClass: "w-full max-w-[160px] object-contain", + description: t.aicodemirrorSponsorDesc, + action: t.aicodemirrorSponsorAction, }, { name: "HuaLongAI", @@ -124,12 +124,12 @@ export default async function SponsorsPage({ params }: { params: Promise<{ lang: action: t.hualongSponsorAction, }, { - name: "AICodeMirror", - href: "https://www.aicodemirror.ai/register?invitecode=9A50BU", - logo: "/sponsors/aicodemirror-card.png", - logoClass: "w-full max-w-[160px] object-contain", - description: t.aicodemirrorSponsorDesc, - action: t.aicodemirrorSponsorAction, + name: "AstraFlow", + href: "https://www.ucloud.cn/site/active/kuaijiesale.html?ytag=geo_waituo_github_dbx", + logo: "/sponsors/astraflow-card.png", + logoClass: "w-full max-w-[136px] object-contain", + description: t.astraflowSponsorDesc, + action: t.astraflowSponsorAction, }, { name: "Atlas Cloud",