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 <shinohara-rin@users.noreply.github.com>
This commit is contained in:
Liu Xiaopai
2026-03-07 04:32:33 +08:00
committed by GitHub
co-authored by Rin
parent 261f67a67d
commit c44d7820b7
+14 -1
View File
@@ -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`)