refactor: Remove cache and metrics endpoints, and clean up voice design CRUD operations

This commit is contained in:
2026-02-04 19:41:08 +08:00
parent dc5fd643e7
commit 4f535b20e5
10 changed files with 4 additions and 275 deletions

View File

@@ -132,10 +132,12 @@ const VoiceDesignForm = forwardRef<VoiceDesignFormHandle>((_props, ref) => {
try {
const backend = preferences?.default_backend || 'local'
const text = watch('text')
const design = await voiceDesignApi.create({
name: saveDesignName,
instruct: instruct,
backend_type: backend
backend_type: backend,
preview_text: text || `${saveDesignName}的声音`
})
toast.success('音色设计已保存')