Skip to content

Commit e02a7ab

Browse files
authored
chore: add intern and moka provider (#3640)
* chore: add intern and moka provider * fix: svg show issue
1 parent d491105 commit e02a7ab

File tree

8 files changed

+66
-0
lines changed

8 files changed

+66
-0
lines changed

docSite/content/zh-cn/docs/development/configuration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,8 @@ weight: 707
221221
- Ollama
222222
- BAAI - 智源研究院
223223
- FishAudio
224+
- Intern - 书生
225+
- Moka - Moka-AI
224226
- Other - 其他
225227

226228

packages/global/core/ai/provider.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ export type ModelProviderIdType =
2323
| 'Ollama'
2424
| 'BAAI'
2525
| 'FishAudio'
26+
| 'Intern'
27+
| 'Moka'
2628
| 'Other';
2729

2830
export type ModelProviderType = {
@@ -143,6 +145,16 @@ export const ModelProviderList: ModelProviderType[] = [
143145
name: 'FishAudio',
144146
avatar: 'model/fishaudio'
145147
},
148+
{
149+
id: 'Intern',
150+
name: i18nT('common:model_intern'),
151+
avatar: 'model/intern'
152+
},
153+
{
154+
id: 'Moka',
155+
name: i18nT('common:model_moka'),
156+
avatar: 'model/moka'
157+
},
146158
{
147159
id: 'Other',
148160
name: i18nT('common:model_other'),

packages/web/components/common/Icon/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,8 @@ export const iconPaths = {
387387
'model/sparkDesk': () => import('./icons/model/sparkDesk.svg'),
388388
'model/stepfun': () => import('./icons/model/stepfun.svg'),
389389
'model/yi': () => import('./icons/model/yi.svg'),
390+
'model/intern': () => import('./icons/model/intern.svg'),
391+
'model/moka': () => import('./icons/model/moka.svg'),
390392
more: () => import('./icons/more.svg'),
391393
moreLine: () => import('./icons/moreLine.svg'),
392394
out: () => import('./icons/out.svg'),
Lines changed: 20 additions & 0 deletions
Loading
Lines changed: 24 additions & 0 deletions
Loading

packages/web/i18n/en/common.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,8 @@
937937
"model_sparkdesk": "SprkDesk",
938938
"model_stepfun": "StepFun",
939939
"model_yi": "Yi",
940+
"model_intern": "Intern",
941+
"model_moka": "Moka-AI",
940942
"move.confirm": "Confirm move",
941943
"navbar.Account": "Account",
942944
"navbar.Chat": "Chat",

0 commit comments

Comments
 (0)