fix(stage-ui): add listModels capability to Deepgram TTS provider (#1079)
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user