Skip to content

Commit 0b0ed88

Browse files
committed
feat(stage-ui): support Cerebras as provider
Close #672
1 parent 326727f commit 0b0ed88

File tree

9 files changed

+41
-3
lines changed

9 files changed

+41
-3
lines changed

cspell.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ words:
3434
- byteorder
3535
- catppuccin
3636
- cdylib
37+
- cerebras
3738
- cientos
3839
- cjkfonts
3940
- clippy

packages/i18n/src/locales/en/settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,9 @@ pages:
578578
comet-api:
579579
description: CometAPI.com
580580
title: Comet API
581+
cerebras:
582+
description: cerebras.ai
583+
title: Cerebras
581584
transcriptions:
582585
playground:
583586
title: Transcription Playground

packages/i18n/src/locales/es/settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,9 @@ pages:
509509
comet-api:
510510
description: CometAPI.com
511511
title: Comet API
512+
cerebras:
513+
description: cerebras.ai
514+
title: Cerebras
512515
transcriptions:
513516
playground:
514517
title: Playground de Transcripción

packages/i18n/src/locales/fr/settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,9 @@ pages:
512512
comet-api:
513513
description: CometAPI.com
514514
title: Comet API
515+
cerebras:
516+
description: cerebras.ai
517+
title: Cerebras
515518
transcriptions:
516519
playground:
517520
title: Terrain de test de transcription

packages/i18n/src/locales/ru/settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,9 @@ pages:
493493
comet-api:
494494
description: CometAPI.com
495495
title: Comet API
496+
cerebras:
497+
description: cerebras.ai
498+
title: Cerebras
496499
transcriptions:
497500
playground:
498501
title: Песочница транскрипции

packages/i18n/src/locales/vi/settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,9 @@ pages:
498498
comet-api:
499499
description: CometAPI.com
500500
title: Comet API
501+
cerebras:
502+
description: cerebras.ai
503+
title: Cerebras
501504
transcriptions:
502505
playground:
503506
title: Transcription Playground

packages/i18n/src/locales/zh-Hans/settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,9 @@ pages:
502502
comet-api:
503503
description: CometAPI.com
504504
title: Comet API
505+
cerebras:
506+
description: cerebras.ai
507+
title: Cerebras
505508
transcriptions:
506509
playground:
507510
title: 实验平台

packages/i18n/src/locales/zh-Hant/settings.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,12 +473,18 @@ pages:
473473
xai:
474474
description: X.AI
475475
title: xAI
476-
transcriptions:
477-
playground:
478-
title: 實驗平台
479476
302-ai:
480477
title: 302.AI
481478
description: 302.AI
479+
comet-api:
480+
description: CometAPI.com
481+
title: Comet API
482+
cerebras:
483+
description: cerebras.ai
484+
title: Cerebras
485+
transcriptions:
486+
playground:
487+
title: 實驗平台
482488
title: 服務來源
483489
scene:
484490
description: 設定角色所在環境

packages/stage-ui/src/stores/providers.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import { isStageTamagotchi, isUrl } from '@proj-airi/stage-shared'
2121
import { computedAsync, useLocalStorage } from '@vueuse/core'
2222
import {
2323
createAzure,
24+
createCerebras,
2425
createDeepSeek,
2526
createFireworks,
2627
createGoogleGenerativeAI,
@@ -1273,6 +1274,18 @@ export const useProvidersStore = defineStore('providers', () => {
12731274
),
12741275
validation: ['model_list'],
12751276
}),
1277+
'cerebras-ai': buildOpenAICompatibleProvider({
1278+
id: 'cerebras-ai',
1279+
name: 'Cerebras',
1280+
nameKey: 'settings.pages.providers.provider.cerebras.title',
1281+
descriptionKey: 'settings.pages.providers.provider.cerebras.description',
1282+
icon: 'i-lobe-icons:cerebras',
1283+
description: 'cerebras.ai',
1284+
defaultBaseUrl: 'https://api.cerebras.ai/v1/',
1285+
creator: createCerebras,
1286+
validation: ['health', 'model_list'],
1287+
iconColor: 'i-lobe-icons:cerebras-color',
1288+
}),
12761289
'together-ai': buildOpenAICompatibleProvider({
12771290
id: 'together-ai',
12781291
name: 'Together.ai',

0 commit comments

Comments
 (0)