update: mobile 编辑源和语速音调页面样式调整

This commit is contained in:
zhuoqinglian
2026-03-11 17:10:18 +08:00
parent 6a14d694b0
commit 48087582c2
13 changed files with 487 additions and 819 deletions
+2 -5
View File
@@ -208,11 +208,8 @@ 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}`, {
export function getAllLanguage(modelId: string) {
return http.Get<{ id: string, name: string, languages: string }[]>(`/models/${modelId}/voices`, {
meta: {
ignoreAuth: false,
toast: false,
@@ -48,6 +48,15 @@ export interface AgentDetail {
ttsRate: number
ttsPitch: number
functions: AgentFunction[]
contextProviders: Providers[]
}
export interface Providers {
url: string
headers: Array<{
key: string
value: string
}>
}
export interface AgentFunction {