Skip to content

Commit 744f487

Browse files
zhuyu Yaozhuyu Yao
zhuyu Yao
authored and
zhuyu Yao
committed
feat: support infiniai
1 parent 10b4f81 commit 744f487

File tree

7 files changed

+27
-1
lines changed

7 files changed

+27
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Features:
1515

1616
Currently available providers:
1717

18-
- AI: OpenAI compatible, SiliconFlow, DeepSeek, OpenRouter, Ollama and more
18+
- AI: OpenAI compatible, SiliconFlow, Infiniai, DeepSeek, OpenRouter, Ollama and more
1919
- Web Search: Tavily (1000 free credits / month), Firecrawl (cloud / self-hosted)
2020

2121
Please give a 🌟 Star if you like this project!

app/components/ConfigManager.vue

+9
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@
5151
link: 'https://cloud.siliconflow.cn/i/J0NHrrX8',
5252
linkText: 'cloud.siliconflow.cn',
5353
},
54+
{
55+
label: t('settings.ai.providers.infiniai.title'),
56+
help: 'settings.ai.providers.infiniai.description',
57+
// Only kept for easy reference in i18n Ally
58+
_help: t('settings.ai.providers.infiniai.description'),
59+
value: 'infiniai',
60+
link: 'https://cloud.infini-ai.com/genstudio/model?deepsearch',
61+
linkText: 'cloud.infini-ai.com',
62+
},
5463
{
5564
label: 'DeepSeek',
5665
value: 'deepseek',

app/composables/useAiProvider.ts

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const useAiModel = () => {
2222
} else if (
2323
config.ai.provider === 'deepseek' ||
2424
config.ai.provider === 'siliconflow' ||
25+
config.ai.provider === 'infiniai' ||
2526
// Special case if model name includes 'deepseek'
2627
// This ensures compatibilty with providers like Siliconflow
2728
config.ai.model?.toLowerCase().includes('deepseek')

app/stores/config.ts

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import type { Locale } from '@/components/LangSwitcher.vue'
44
export type ConfigAiProvider =
55
| 'openai-compatible'
66
| 'siliconflow'
7+
| 'infiniai'
78
| 'openrouter'
89
| 'deepseek'
910
| 'ollama'
@@ -84,6 +85,9 @@ export const useConfigStore = defineStore('config', () => {
8485
if (ai.provider === 'siliconflow') {
8586
return ai.apiBase || 'https://api.siliconflow.cn/v1'
8687
}
88+
if (ai.provider === 'infiniai') {
89+
return ai.apiBase || 'https://cloud.infini-ai.com/maas/v1'
90+
}
8791
return ai.apiBase || 'https://api.openai.com/v1'
8892
})
8993
const webSearchApiBase = computed(() => {

i18n/en.json

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
"siliconflow": {
2828
"title": "SiliconFlow",
2929
"description": "Offers ¥14 free credits on register. Get one API key at {0}."
30+
},
31+
"infiniai": {
32+
"title": "Infiniai",
33+
"description": "After registration, you can use the full-powered Deepseek R1 and other inference-accelerated models without any barriers. Generate an APIKEY after logging in at {0}."
3034
}
3135
}
3236
},

i18n/nl.json

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
"siliconflow": {
2828
"title": "SiliconFlow",
2929
"description": "Biedt ¥14 (€1,85) gratis credits bij registratie. Krijg één API-sleutel bij {0}."
30+
},
31+
"infiniai": {
32+
"title": "Infiniai",
33+
"description": "Na registratie kunt u zonder drempels de volwaardige Deepseek R1 en andere inferentie-versnelde modellen gebruiken. Genereer een APIKEY na inloggen op {0}."
3034
}
3135
}
3236
},

i18n/zh.json

+4
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
"siliconflow": {
2828
"title": "SiliconFlow 硅基流动",
2929
"description": "注册赠送 ¥14 元免费额度。在 {0} 生成一个 API key。"
30+
},
31+
"infiniai": {
32+
"title": "Infiniai 无问芯穹",
33+
"description": "注册后,无门槛免费用deepseek r1满血等推理加速版模型。登录 {0} 后生成 APIKEY"
3034
}
3135
}
3236
},

0 commit comments

Comments
 (0)