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,
},
})
}
+5 -1
View File
@@ -11,7 +11,7 @@ export interface Agent {
summaryMemory: string | null
lastConnectedAt: string | null
deviceCount: number
tags: { id: string, tagName: string }[]
tags: Record<string, string>[]
}
// 智能体创建数据类型
@@ -43,6 +43,10 @@ export interface AgentDetail {
createdAt: string
updater: string
updatedAt: string
ttsLanguage: string
ttsVolume: number
ttsRate: number
ttsPitch: number
functions: AgentFunction[]
}