fix(stage-ui): add listModels capability to Deepgram TTS provider (#1079)

This commit is contained in:
atian8179
2026-03-02 23:05:38 +08:00
committed by GitHub
parent 53c424818d
commit f4dc07c77f
+28
View File
@@ -953,6 +953,34 @@ export const useProvidersStore = defineStore('providers', () => {
return provider
},
capabilities: {
listModels: async () => {
return [
{
id: 'aura-2',
name: 'Aura 2',
provider: 'deepgram-tts',
description: 'Latest generation Aura model',
contextLength: 0,
deprecated: false,
},
{
id: 'aura-1',
name: 'Aura 1',
provider: 'deepgram-tts',
description: 'First generation Aura model',
contextLength: 0,
deprecated: false,
},
{
id: 'aura',
name: 'Aura (Legacy)',
provider: 'deepgram-tts',
description: 'Original Aura model',
contextLength: 0,
deprecated: true,
},
]
},
listVoices: async (config) => {
const provider = createUnDeepgram((config.apiKey as string).trim(), (config.baseUrl as string).trim()) as VoiceProviderWithExtraOptions<UnDeepgramOptions>