diff --git a/packages/stage-ui/src/stores/providers.ts b/packages/stage-ui/src/stores/providers.ts index d77ffd79d..6a26f942e 100644 --- a/packages/stage-ui/src/stores/providers.ts +++ b/packages/stage-ui/src/stores/providers.ts @@ -1129,13 +1129,14 @@ export const useProvidersStore = defineStore('providers', () => { iconColor: 'i-lobe-icons:bilibiliindex', defaultOptions: () => ({ baseUrl: 'http://localhost:11996/tts/', + model: 'IndexTTS-1.5', }), createProvider: async (config) => { const provider: SpeechProvider = { speech: () => { const req = { baseURL: config.baseUrl as string, - model: 'IndexTTS-1.5', + model: (config.model as string) || 'IndexTTS-1.5', } return req }, @@ -1143,6 +1144,18 @@ export const useProvidersStore = defineStore('providers', () => { return provider }, capabilities: { + listModels: async () => { + return [ + { + id: 'IndexTTS-1.5', + name: 'IndexTTS-1.5', + provider: 'index-tts-vllm', + description: 'Default model for Index-TTS vLLM deployment', + contextLength: 0, + deprecated: false, + }, + ] + }, listVoices: async (config) => { const voicesUrl = config.baseUrl as string const response = await fetch(`${voicesUrl}audio/voices`)