From c44d7820b76e46e87b525731d6dcc2ec8df2b2a1 Mon Sep 17 00:00:00 2001 From: Liu Xiaopai <73659136+liuxiaopai-ai@users.noreply.github.com> Date: Sat, 7 Mar 2026 04:32:33 +0800 Subject: [PATCH] fix(stage-ui): add model list for index-tts-vllm for UI consistency (#1066) * fix(providers): add model list for index-tts-vllm * chore(ci): trigger checks * ssot --------- Co-authored-by: Rin --- packages/stage-ui/src/stores/providers.ts | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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`)