feat: mobile端同步更新上报模式、语言设置功能

This commit is contained in:
zhuoqinglian
2026-03-06 09:40:04 +08:00
parent a1d37b61e4
commit d51c2a241c
13 changed files with 581 additions and 28 deletions
@@ -206,3 +206,19 @@ export function updateAgentTags(agentId: string, data) {
},
})
}
// 获取所有语言
export function getAllLanguage(modelId, voiceName) {
const queryParams = new URLSearchParams({
voiceName: voiceName || '',
}).toString()
return http.Get(`/models/${modelId}/voices?${queryParams}`, {
meta: {
ignoreAuth: false,
toast: false,
},
cacheFor: {
expire: 0,
},
})
}