Use generated short id for llm asr tts

This commit is contained in:
Xin Wang
2026-02-12 19:05:50 +08:00
parent 14991af1bf
commit 28ca003662
6 changed files with 98 additions and 27 deletions

View File

@@ -297,7 +297,6 @@ export const fetchVoices = async (): Promise<Voice[]> => {
export const createVoice = async (data: Partial<Voice>): Promise<Voice> => {
const payload = {
id: data.id || undefined,
name: data.name || 'New Voice',
vendor: data.vendor || 'OpenAI Compatible',
gender: data.gender || 'Female',
@@ -359,7 +358,6 @@ export const fetchASRModels = async (): Promise<ASRModel[]> => {
export const createASRModel = async (data: Partial<ASRModel>): Promise<ASRModel> => {
const payload = {
id: data.id || undefined,
name: data.name || 'New ASR Model',
vendor: data.vendor || 'OpenAI Compatible',
language: data.language || 'zh',
@@ -450,7 +448,6 @@ export const fetchLLMModels = async (): Promise<LLMModel[]> => {
export const createLLMModel = async (data: Partial<LLMModel>): Promise<LLMModel> => {
const payload = {
id: data.id || undefined,
name: data.name || 'New LLM Model',
vendor: data.vendor || 'OpenAI Compatible',
type: data.type || 'text',