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:
@@ -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`)
|
||||
|
||||
Reference in New Issue
Block a user