Use generated short id for llm asr tts
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user