Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

feat(ai): add HiAPI partner preset and AstraFlow bonus badge

t8y229d7d0f62aaf
diff --git a/apps/desktop/public/icons/ai/hiapi.png b/apps/desktop/public/icons/ai/hiapi.png
new file mode 100644
index 0000000000..9e1afc34af
Binary files /dev/null and b/apps/desktop/public/icons/ai/hiapi.png differ
diff --git a/apps/desktop/src/i18n/locales/az.ts b/apps/desktop/src/i18n/locales/az.ts
index 9c3c4c1b6b..aeacc0e49b 100644
--- a/apps/desktop/src/i18n/locales/az.ts
+++ b/apps/desktop/src/i18n/locales/az.ts
@@ -2943,6 +2943,10 @@ export default withEnglishFallback({
"🐉 AI ilə intensiv işləyən tərtibatçılar üçün rəsmi mənbəli model vasitəçisi! Yoxlanıla bilən token səviyyəli hesablaşma, müəssisə müqavilələri və hesab-fakturalarla 100% orijinal Codex və Claude seriyaları.\n🎉$1 pulsuz kredit üçün DBX&HUALONG promo kodu ilə qeydiyyatdan keçin!",
aicodemirrorDescription: "⚡ AICodeMirror korporativ səviyyəli yüksək paralellik, sürətli faktura və 7×24 xüsusi dəstək təklif edir; yeni istifadəçilər ¥8 pulsuz kredit və ilk dolduruşda 20% endirim qazanır.",
astraflowDescription: "UCloud-un AstraFlow platforması bir API açarı ilə 200-dən çox populyar süni intellekt modelinə çıxış verir və OpenAI API ilə uyğundur.",
+ astraflowSponsored: "¥50 pulsuz kredit",
+ hiapiSponsored: "200 pulsuz Credits",
+ hiapiDescription:
+ "HiAPI; şəkil, video, səs və mətn modelləri üçün tərtibatçı yönümlü API platformasıdır. Mətn modelləri OpenAI ilə uyğun uç nöqtələrdən istifadə edir, Remote MCP və Agent Skills isə eyni hesabı Claude Code, Cursor və digər kodlaşdırma agentlərinə qoşur.\n🎁 Yeni istifadəçilər qeydiyyatda 200 Credits, ilk dolduruşda isə 12%-ə qədər əlavə Credits qazanır.",
visitPartner: "Tərəfdaşın saytına keç",
getApiKey: "API açarı əldə et",
defaultModel: "Standart model",
diff --git a/apps/desktop/src/i18n/locales/en.ts b/apps/desktop/src/i18n/locales/en.ts
index 7901890c27..c5c514b391 100644
--- a/apps/desktop/src/i18n/locales/en.ts
+++ b/apps/desktop/src/i18n/locales/en.ts
@@ -3440,6 +3440,10 @@ export default {
hualongDescription: "🐉 Official-source model relay for heavy AI developers! 100% genuine Codex and Claude series with verifiable token-level billing, enterprise contracts, and invoicing.\n🎉Sign up with promo code DBX&HUALONG for $1 free credit!",
aicodemirrorDescription: "⚡ AICodeMirror delivers enterprise-grade concurrency, fast invoicing, and 7×24 dedicated support; new users get ¥8 in free credit plus 20% off their first top-up.",
astraflowDescription: "AstraFlow by UCloud provides access to 200+ mainstream AI models with a single API key, compatible with the OpenAI API.",
+ astraflowSponsored: "¥50 free credit",
+ hiapiSponsored: "200 free Credits",
+ hiapiDescription:
+ "HiAPI is a developer-focused API platform for image, video, audio, and text models; text models use OpenAI-compatible endpoints, and Remote MCP plus Agent Skills connect the same account to Claude Code, Cursor, and other coding agents.\n🎁 New users get 200 Credits on signup, plus up to 12% extra Credits on the first top-up.",
visitPartner: "Visit partner website",
getApiKey: "Get API key",
defaultModel: "Default Model",
diff --git a/apps/desktop/src/i18n/locales/es.ts b/apps/desktop/src/i18n/locales/es.ts
index 2e5b726acd..a7f85bfe80 100644
--- a/apps/desktop/src/i18n/locales/es.ts
+++ b/apps/desktop/src/i18n/locales/es.ts
@@ -3343,6 +3343,10 @@ export default withEnglishFallback({
hualongDescription: "🐉 ¡Relay de modelos con fuente oficial para desarrolladores de IA intensivos! Serie Codex/Claude 100% oficial, facturación por token verificable, contratos y facturas. \n🎉¡Regístrate con el código promocional DBX&HUALONG y obtén 1 $ de crédito!",
aicodemirrorDescription: "⚡ AICodeMirror ofrece concurrencia de nivel empresarial, facturación rápida y soporte dedicado 7×24; los nuevos usuarios obtienen ¥8 de crédito gratuito y un 20% de descuento en su primera recarga.",
astraflowDescription: "AstraFlow de UCloud ofrece acceso a más de 200 modelos de IA populares con una sola clave API y es compatible con la API de OpenAI.",
+ astraflowSponsored: "¥50 de crédito gratis",
+ hiapiSponsored: "200 Credits gratis",
+ hiapiDescription:
+ "HiAPI es una plataforma de API para desarrolladores con modelos de imagen, vídeo, audio y texto; los modelos de texto usan endpoints compatibles con OpenAI, y Remote MCP y Agent Skills conectan la cuenta a Claude Code, Cursor y otros agentes de código.\n🎁 Los nuevos usuarios reciben 200 Credits al registrarse y hasta un 12% de Credits extra en la primera recarga.",
visitPartner: "Visitar el sitio web del socio",
getApiKey: "Obtener clave API",
defaultModel: "Modelo predeterminado",
diff --git a/apps/desktop/src/i18n/locales/id.ts b/apps/desktop/src/i18n/locales/id.ts
index 81c0ba02b2..21dc322124 100644
--- a/apps/desktop/src/i18n/locales/id.ts
+++ b/apps/desktop/src/i18n/locales/id.ts
@@ -3244,6 +3244,10 @@ export default withEnglishFallback({
hualongDescription: "🐉 Relay model sumber resmi untuk developer AI berat! Seri Codex dan Claude 100% asli dengan penagihan berbasis token yang dapat diverifikasi, kontrak enterprise, dan invoicing.\n🎉Daftar dengan kode promo DBX&HUALONG untuk kredit gratis $1!",
aicodemirrorDescription: "⚡ AICodeMirror menghadirkan konkurensi tingkat enterprise, invoicing cepat, dan dukungan khusus 7×24; pengguna baru mendapat kredit gratis ¥8 plus diskon 20% untuk top up pertama.",
astraflowDescription: "AstraFlow dari UCloud menyediakan akses ke lebih dari 200 model AI populer dengan satu API key, kompatibel dengan API OpenAI.",
+ astraflowSponsored: "Kredit gratis ¥50",
+ hiapiSponsored: "200 Credits gratis",
+ hiapiDescription:
+ "HiAPI adalah platform API untuk developer dengan model gambar, video, audio, dan teks; model teks menggunakan endpoint yang kompatibel dengan OpenAI, sementara Remote MCP dan Agent Skills menghubungkan akun yang sama ke Claude Code, Cursor, dan agen coding lainnya.\n🎁 Pengguna baru mendapat 200 Credits saat mendaftar dan hingga 12% Credits ekstra pada top-up pertama.",
visitPartner: "Kunjungi situs web mitra",
getApiKey: "Dapatkan API key",
defaultModel: "Model Default",
diff --git a/apps/desktop/src/i18n/locales/it.ts b/apps/desktop/src/i18n/locales/it.ts
index 475e89556a..8255b977c1 100644
--- a/apps/desktop/src/i18n/locales/it.ts
+++ b/apps/desktop/src/i18n/locales/it.ts
@@ -3194,6 +3194,10 @@ export default withEnglishFallback({
hualongDescription: "🐉 Relay di modelli con fonte ufficiale per sviluppatori AI intensivi! Serie Codex/Claude 100% ufficiale, fatturazione a token verificabile, contratti e fatture. \n🎉Registrati con il codice promo DBX&HUALONG e ottieni 1 $ di credito!",
aicodemirrorDescription: "⚡ AICodeMirror offre concorrenza di livello enterprise, fatturazione rapida e supporto dedicato 7×24; i nuovi utenti ottengono ¥8 di credito gratuito e il 20% di sconto sulla prima ricarica.",
astraflowDescription: "AstraFlow di UCloud offre accesso a oltre 200 modelli di IA diffusi con un'unica chiave API ed è compatibile con l'API OpenAI.",
+ astraflowSponsored: "¥50 di credito gratuito",
+ hiapiSponsored: "200 Credits gratuiti",
+ hiapiDescription:
+ "HiAPI è una piattaforma API per sviluppatori con modelli di immagini, video, audio e testo; i modelli testuali usano endpoint compatibili con OpenAI, mentre Remote MCP e Agent Skills collegano l'account a Claude Code, Cursor e altri agenti di coding.\n🎁 I nuovi utenti ricevono 200 Credits alla registrazione e fino al 12% di Credits extra sulla prima ricarica.",
visitPartner: "Visita il sito del partner",
getApiKey: "Ottieni la chiave API",
defaultModel: "Modello predefinito",
diff --git a/apps/desktop/src/i18n/locales/ja.ts b/apps/desktop/src/i18n/locales/ja.ts
index 54a29ecbd2..4418cd1c44 100644
--- a/apps/desktop/src/i18n/locales/ja.ts
+++ b/apps/desktop/src/i18n/locales/ja.ts
@@ -3218,6 +3218,10 @@ export default withEnglishFallback({
hualongDescription: "🐉 ヘビーなAI開発者のための公式直結リレー!Codex/Claudeシリーズは100%公式ソース、トークン単位の明細検証、法人契約・請求書対応。\n🎉プロモコード DBX&HUALONG で登録すると$1クレジット進呈!",
aicodemirrorDescription: "⚡ AICodeMirror はエンタープライズ級の高同時実行、迅速なインボイス発行、7×24 の専任サポートを提供。新規ユーザーは 8 元の無料クレジットと初回チャージ 20% オフを獲得できます。",
astraflowDescription: "UCloud の AstraFlow は、1 つの API キーで 200 以上の主要 AI モデルを利用できる、OpenAI API 互換のプラットフォームです。",
+ astraflowSponsored: "50元無料クレジット",
+ hiapiSponsored: "登録で200 Credits進呈",
+ hiapiDescription:
+ "HiAPI は画像・動画・音声・テキストモデル向けの開発者向け API プラットフォームです。テキストモデルは OpenAI 互換エンドポイントを提供し、Remote MCP と Agent Skills で Claude Code や Cursor などのコーディングエージェントに接続できます。\n🎁 新規登録で 200 Credits を進呈、初回チャージで最大 12% の Credits を追加プレゼント。",
visitPartner: "パートナーサイトを開く",
getApiKey: "APIキーを取得",
defaultModel: "デフォルトモデル",
diff --git a/apps/desktop/src/i18n/locales/ko.ts b/apps/desktop/src/i18n/locales/ko.ts
index 05d256b657..4cbf13eb39 100644
--- a/apps/desktop/src/i18n/locales/ko.ts
+++ b/apps/desktop/src/i18n/locales/ko.ts
@@ -3146,6 +3146,10 @@ export default withEnglishFallback({
hualongDescription: "🐉 헤비 AI 개발자를 위한 공식 직결 릴레이! Codex/Claude 시리즈 100% 공식 소스, 토큰 단위 명세 검증, 기업 계약 및 인보이스 지원. \n🎉프로모 코드 DBX&HUALONG 로 가입하면 $1 크레딧 증정!",
aicodemirrorDescription: "⚡ AICodeMirror는 기업급 동시 처리, 빠른 세금계산서 발급, 7×24 전담 기술 지원을 제공합니다. 신규 사용자는 8위안 무료 크레딧과 첫 충전 20% 할인을 받습니다.",
astraflowDescription: "UCloud의 AstraFlow는 하나의 API 키로 200개 이상의 주요 AI 모델을 이용할 수 있는 OpenAI API 호환 플랫폼입니다.",
+ astraflowSponsored: "50위안 무료 크레딧",
+ hiapiSponsored: "가입 시 200 Credits 증정",
+ hiapiDescription:
+ "HiAPI는 이미지·비디오·오디오·텍스트 모델을 위한 개발자 중심 API 플랫폼입니다. 텍스트 모델은 OpenAI 호환 엔드포인트를 제공하며, Remote MCP와 Agent Skills로 Claude Code, Cursor 등 코딩 에이전트에 연결할 수 있습니다.\n🎁 신규 가입 시 200 Credits를 증정하고, 첫 충전 시 최대 12% 추가 Credits를 제공합니다.",
visitPartner: "파트너 웹사이트 방문",
getApiKey: "API 키 받기",
defaultModel: "기본 모델",
diff --git a/apps/desktop/src/i18n/locales/pt-BR.ts b/apps/desktop/src/i18n/locales/pt-BR.ts
index dce134a413..c0ff6b9bb1 100644
--- a/apps/desktop/src/i18n/locales/pt-BR.ts
+++ b/apps/desktop/src/i18n/locales/pt-BR.ts
@@ -3195,6 +3195,10 @@ export default withEnglishFallback({
hualongDescription: "🐉 Relay de modelos com fonte oficial para desenvolvedores de IA intensivos! Série Codex/Claude 100% oficial, faturamento por token verificável, contratos e notas fiscais. \n🎉Cadastre-se com o código promocional DBX&HUALONG e ganhe US$ 1 de crédito!",
aicodemirrorDescription: "⚡ AICodeMirror oferece concorrência de nível corporativo, faturamento rápido e suporte dedicado 7×24; novos usuários ganham ¥8 de crédito gratuito e 20% de desconto na primeira recarga.",
astraflowDescription: "O AstraFlow da UCloud oferece acesso a mais de 200 modelos populares de IA com uma única chave de API e é compatível com a API da OpenAI.",
+ astraflowSponsored: "¥50 de crédito grátis",
+ hiapiSponsored: "200 Credits grátis",
+ hiapiDescription:
+ "A HiAPI é uma plataforma de API para desenvolvedores com modelos de imagem, vídeo, áudio e texto; os modelos de texto usam endpoints compatíveis com OpenAI, e o Remote MCP e as Agent Skills conectam a mesma conta ao Claude Code, Cursor e outros agentes de código.\n🎁 Novos usuários recebem 200 Credits no cadastro e até 12% de Credits extras na primeira recarga.",
visitPartner: "Visitar site do parceiro",
getApiKey: "Obter chave de API",
defaultModel: "Modelo padrão",
diff --git a/apps/desktop/src/i18n/locales/ru.ts b/apps/desktop/src/i18n/locales/ru.ts
index 6f4f851ee6..aae953e523 100644
--- a/apps/desktop/src/i18n/locales/ru.ts
+++ b/apps/desktop/src/i18n/locales/ru.ts
@@ -3299,6 +3299,10 @@ export default withEnglishFallback({
"🐉 Официальный ретранслятор моделей для активных ИИ-разработчиков! 100% подлинные модели серий Codex и Claude с проверяемой токен-биллинговой детализацией, корпоративными контрактами и выставлением счетов.\n🎉Зарегистрируйтесь с промокодом DBX&HUALONG и получите $1 бесплатного кредита!",
aicodemirrorDescription: "⚡ AICodeMirror — корпоративная масштабируемость, быстрые счета и поддержка 7×24; новые пользователи получают 8 юаней бесплатного кредита и скидку 20% на первое пополнение.",
astraflowDescription: "AstraFlow от UCloud предоставляет доступ к более чем 200 популярным моделям ИИ с одним API-ключом и совместим с API OpenAI.",
+ astraflowSponsored: "50 юаней бесплатного кредита",
+ hiapiSponsored: "200 Credits в подарок",
+ hiapiDescription:
+ "HiAPI — платформа API для разработчиков: модели изображений, видео, аудио и текста. Текстовые модели используют OpenAI-совместимые эндпоинты, а Remote MCP и Agent Skills подключают аккаунт к Claude Code, Cursor и другим агентам.\n🎁 Новым пользователям — 200 Credits при регистрации и до 12% дополнительных Credits при первом пополнении.",
visitPartner: "Посетить сайт партнёра",
getApiKey: "Получить ключ API",
defaultModel: "Модель по умолчанию",
diff --git a/apps/desktop/src/i18n/locales/tr.ts b/apps/desktop/src/i18n/locales/tr.ts
index 994598ca83..95356f7dba 100644
--- a/apps/desktop/src/i18n/locales/tr.ts
+++ b/apps/desktop/src/i18n/locales/tr.ts
@@ -2917,6 +2917,10 @@ export default withEnglishFallback({
hualongDescription: "🐉 Yoğun yapay zekâ geliştiricileri için resmî kaynak aktarıcı! Codex/Claude serisi %100 resmî kaynak, doğrulanabilir belirteç düzeyinde fatura, kurumsal sözleşme ve fatura. \n🎉DBX&HUALONG promosyon koduyla kayıt olun, 1$ kredi kazanın!",
aicodemirrorDescription: "⚡ AICodeMirror, kurumsal düzeyde eşzamanlılık, hızlı faturalandırma ve 7×24 özel destek sunar; yeni kullanıcılar ¥8 ücretsiz kredi ve ilk yüklemede %20 indirim kazanır.",
astraflowDescription: "UCloud'un AstraFlow platformu, tek bir API anahtarıyla 200'den fazla popüler yapay zekâ modeline erişim sağlar ve OpenAI API ile uyumludur.",
+ astraflowSponsored: "¥50 ücretsiz kredi",
+ hiapiSponsored: "200 ücretsiz Credits",
+ hiapiDescription:
+ "HiAPI; görsel, video, ses ve metin modelleri için geliştirici odaklı bir API platformudur. Metin modelleri OpenAI uyumlu uç noktalar kullanır; Remote MCP ve Agent Skills aynı hesabı Claude Code, Cursor ve diğer kodlama ajanlarına bağlar.\n🎁 Yeni kullanıcılara kayıtta 200 Credits, ilk yüklemede ise %12'ye kadar ek Credits verilir.",
visitPartner: "İş ortağının web sitesini ziyaret et",
getApiKey: "API anahtarı al",
defaultModel: "Varsayılan Model",
diff --git a/apps/desktop/src/i18n/locales/zh-CN.ts b/apps/desktop/src/i18n/locales/zh-CN.ts
index dd6e39c453..510e1f8ba6 100644
--- a/apps/desktop/src/i18n/locales/zh-CN.ts
+++ b/apps/desktop/src/i18n/locales/zh-CN.ts
@@ -3374,6 +3374,9 @@ export default withEnglishFallback({
hualongDescription: "🐉 面向重度 AI 开发者的官方直连中转!Codex/Claude 系列 100% 官方源直供,Token 级账单逐笔可核验,支持企业合同与发票。\n🎉用优惠码 DBX&HUALONG 注册即得 $1 额度!",
aicodemirrorDescription: "⚡ AICodeMirror 支持企业级高并发、极速开票、7×24 专属技术支持,新人免费领 8 元额度和首充 8 折。",
astraflowDescription: "UCloud 优刻得旗下星图 AstraFlow 大模型平台,一个 API Key 即可调用 200+ 主流大模型,兼容 OpenAI API。",
+ astraflowSponsored: "50 元免费额度",
+ hiapiSponsored: "注册送 200 Credits",
+ hiapiDescription: "HiAPI 是面向开发者的图片、视频、音频及文本模型 API 平台,文本模型提供 OpenAI 兼容接口,Remote MCP 和 Agent Skills 可接入 Claude Code、Cursor 等 AI 编程工具。\n🎁 新用户注册赠送 200 Credits,首充最高加赠 12% 积分。",
visitPartner: "访问合作伙伴网站",
getApiKey: "获取 API Key",
defaultModel: "默认模型",
diff --git a/apps/desktop/src/i18n/locales/zh-TW.ts b/apps/desktop/src/i18n/locales/zh-TW.ts
index dcb7ad1d25..7774a5cf8e 100644
--- a/apps/desktop/src/i18n/locales/zh-TW.ts
+++ b/apps/desktop/src/i18n/locales/zh-TW.ts
@@ -3200,6 +3200,9 @@ export default withEnglishFallback({
hualongDescription: "🐉 面向重度 AI 開發者的官方直連中轉!Codex/Claude 系列 100% 官方源直供,Token 級帳單可逐筆核驗,支援企業合約與發票。\n🎉用優惠碼 DBX&HUALONG 註冊即得 $1 額度!",
aicodemirrorDescription: "⚡ AICodeMirror 支援企業級高併發、極速開票與 7×24 專屬技術支援,新人免費領 8 元額度和首充 8 折。",
astraflowDescription: "UCloud 優刻得旗下星圖 AstraFlow 大模型平台,一個 API Key 即可呼叫 200+ 主流大模型,相容 OpenAI API。",
+ astraflowSponsored: "50 元免費額度",
+ hiapiSponsored: "註冊送 200 Credits",
+ hiapiDescription: "HiAPI 是面向開發者的圖片、影片、音訊及文字模型 API 平台,文字模型提供 OpenAI 相容介面,Remote MCP 和 Agent Skills 可接入 Claude Code、Cursor 等 AI 編程工具。\n🎁 新用戶註冊贈送 200 Credits,首次儲值最高加贈 12% 積分。",
visitPartner: "前往合作夥伴網站",
getApiKey: "取得 API Key",
defaultModel: "預設模型",
diff --git a/apps/desktop/src/stores/__tests__/settingsStore.spec.ts b/apps/desktop/src/stores/__tests__/settingsStore.spec.ts
index d4a9b50a01..aa0abdc10d 100644
--- a/apps/desktop/src/stores/__tests__/settingsStore.spec.ts
+++ b/apps/desktop/src/stores/__tests__/settingsStore.spec.ts
@@ -1268,9 +1268,10 @@ describe("settingsStore AI API key normalization", () => {
apiStyle: "completions",
authMethod: "bearer",
requiresApiKey: true,
- websiteUrl: "https://www.ucloud.cn/site/active/kuaijiesale.html?ytag=geo_waituo_github_dbx",
+ websiteUrl: "https://www.ucloud.cn/site/active/astraflow-credit?ytag=geo_waituo_dbx",
apiKeyUrl: "https://console.ucloud.cn/modelverse/experience/api-keys",
descriptionKey: "ai.astraflowDescription",
+ badgeKey: "ai.astraflowSponsored",
});
expect(preset.models ?? []).toEqual([]);
expect(normalizeAiConfig(preset)).toMatchObject({
@@ -1289,6 +1290,31 @@ describe("settingsStore AI API key normalization", () => {
expect(getAiProviderPresetOption("hualong-ai").model).toBe("deepseek-v4.1-flash");
});
+ it("adds HiAPI as a sponsored partner preset", () => {
+ const preset = getAiProviderPresetOption("hiapi");
+
+ expect(AI_PROVIDER_PARTNER_PRESETS.find((candidate) => candidate.id === "hiapi")).toBe(preset);
+ expect(preset).toMatchObject({
+ id: "hiapi",
+ label: "HiAPI",
+ iconPath: "/icons/ai/hiapi.png",
+ group: "partner",
+ provider: "openai-compatible",
+ endpoint: "https://api.hiapi.ai/v1",
+ model: "",
+ models: [{ name: "glm-5.3" }, { name: "deepseek-v4-flash" }, { name: "deepseek-v4.1-flash" }, { name: "gpt-6-astra" }, { name: "claude-sonnet-4-6" }, { name: "kimi-k3" }],
+ apiStyle: "completions",
+ authMethod: "bearer",
+ requiresApiKey: true,
+ websiteUrl: "https://www.hiapi.ai/invite/dbx?utm_source=dbx&utm_medium=affiliate&utm_campaign=backlink&utm_content=ai-provider",
+ apiKeyUrl: "https://www.hiapi.ai/invite/dbx?utm_source=dbx&utm_medium=affiliate&utm_campaign=backlink&utm_content=ai-provider",
+ descriptionKey: "ai.hiapiDescription",
+ badgeKey: "ai.hiapiSponsored",
+ });
+ expect(getAiProviderPreset("openai-compatible", "https://api.hiapi.ai/v1")).toBe(preset);
+ expect(getAiProviderPresetId("openai-compatible", " HTTPS://API.HIAPI.AI/v1/ ")).toBe("hiapi");
+ });
+
it("uses the mainland MiniMax endpoint only for new zh-CN presets", () => {
expect(getAiProviderPresetDefaultEndpoint(AI_PROVIDER_PRESETS.minimax, "zh-CN")).toBe("https://api.minimaxi.com/v1");
expect(getAiProviderPresetDefaultEndpoint(AI_PROVIDER_PRESETS.minimax, "zh-TW")).toBe("https://api.minimax.io/v1");
diff --git a/apps/desktop/src/stores/settingsStore.ts b/apps/desktop/src/stores/settingsStore.ts
index 3729f69cd1..08f257255f 100644
--- a/apps/desktop/src/stores/settingsStore.ts
+++ b/apps/desktop/src/stores/settingsStore.ts
@@ -556,6 +556,23 @@ export const AI_PROVIDER_PARTNER_PRESETS: readonly AiPartnerProviderPreset[] = [
descriptionKey: "ai.hualongDescription",
badgeKey: "ai.hualongSponsored",
},
+ {
+ id: "hiapi",
+ label: "HiAPI",
+ iconPath: "/icons/ai/hiapi.png",
+ group: "partner",
+ provider: "openai-compatible",
+ endpoint: "https://api.hiapi.ai/v1",
+ model: "",
+ models: [{ name: "glm-5.3" }, { name: "deepseek-v4-flash" }, { name: "deepseek-v4.1-flash" }, { name: "gpt-6-astra" }, { name: "claude-sonnet-4-6" }, { name: "kimi-k3" }],
+ apiStyle: "completions",
+ authMethod: "bearer",
+ requiresApiKey: true,
+ websiteUrl: "https://www.hiapi.ai/invite/dbx?utm_source=dbx&utm_medium=affiliate&utm_campaign=backlink&utm_content=ai-provider",
+ apiKeyUrl: "https://www.hiapi.ai/invite/dbx?utm_source=dbx&utm_medium=affiliate&utm_campaign=backlink&utm_content=ai-provider",
+ descriptionKey: "ai.hiapiDescription",
+ badgeKey: "ai.hiapiSponsored",
+ },
{
id: "astraflow",
label: "AstraFlow",
@@ -567,9 +584,10 @@ export const AI_PROVIDER_PARTNER_PRESETS: readonly AiPartnerProviderPreset[] = [
apiStyle: "completions",
authMethod: "bearer",
requiresApiKey: true,
- websiteUrl: "https://www.ucloud.cn/site/active/kuaijiesale.html?ytag=geo_waituo_github_dbx",
+ websiteUrl: "https://www.ucloud.cn/site/active/astraflow-credit?ytag=geo_waituo_dbx",
apiKeyUrl: "https://console.ucloud.cn/modelverse/experience/api-keys",
descriptionKey: "ai.astraflowDescription",
+ badgeKey: "ai.astraflowSponsored",
},
];