diff --git a/frontend/src/api/modules/ai.ts b/frontend/src/api/modules/ai.ts index 72b6f8619..8c36b1eec 100644 --- a/frontend/src/api/modules/ai.ts +++ b/frontend/src/api/modules/ai.ts @@ -95,7 +95,7 @@ export const operateTensorRTLLM = (req: AI.TensorRTLLMOperate) => { }; export const createAgent = (req: AI.AgentCreateReq) => { - return http.post(`/ai/agents`, req, TimeoutEnum.T_60S); + return http.post(`/ai/agents`, req, TimeoutEnum.T_5M); }; export const pageAgents = (req: SearchWithPage) => { @@ -131,23 +131,23 @@ export const updateAgentModelConfig = (req: AI.AgentModelConfigUpdateReq) => { }; export const getAgentOverview = (req: AI.AgentOverviewReq) => { - return http.post(`/ai/agents/overview`, req, TimeoutEnum.T_60S); + return http.post(`/ai/agents/overview`, req, TimeoutEnum.T_5M); }; export const createAgentRole = (req: AI.AgentRoleCreateReq) => { - return http.post(`/ai/agents/agent/create`, req, TimeoutEnum.T_60S); + return http.post(`/ai/agents/agent/create`, req, TimeoutEnum.T_5M); }; export const deleteAgentRole = (req: AI.AgentRoleDeleteReq) => { - return http.post(`/ai/agents/agent/delete`, req, TimeoutEnum.T_60S); + return http.post(`/ai/agents/agent/delete`, req, TimeoutEnum.T_5M); }; export const bindAgentRole = (req: AI.AgentRoleBindReq) => { - return http.post(`/ai/agents/agent/bind`, req, TimeoutEnum.T_60S); + return http.post(`/ai/agents/agent/bind`, req, TimeoutEnum.T_5M); }; export const unbindAgentRole = (req: AI.AgentRoleBindReq) => { - return http.post(`/ai/agents/agent/unbind`, req, TimeoutEnum.T_60S); + return http.post(`/ai/agents/agent/unbind`, req, TimeoutEnum.T_5M); }; export const getConfiguredAgentRoles = (req: AI.AgentConfiguredAgentsReq) => { @@ -155,7 +155,7 @@ export const getConfiguredAgentRoles = (req: AI.AgentConfiguredAgentsReq) => { }; export const getAgentRoleChannels = (req: AI.AgentRoleChannelsReq) => { - return http.post(`/ai/agents/agent/channels`, req, TimeoutEnum.T_60S); + return http.post(`/ai/agents/agent/channels`, req, TimeoutEnum.T_5M); }; export const getAgentRoleMarkdownFiles = (req: AI.AgentRoleMarkdownFilesReq) => { @@ -163,7 +163,7 @@ export const getAgentRoleMarkdownFiles = (req: AI.AgentRoleMarkdownFilesReq) => }; export const updateAgentRoleMarkdownFile = (req: AI.AgentRoleMarkdownFilesUpdateReq) => { - return http.post(`/ai/agents/agent/md/update`, req, TimeoutEnum.T_60S); + return http.post(`/ai/agents/agent/md/update`, req, TimeoutEnum.T_5M); }; export const getAgentProviders = () => { @@ -299,11 +299,11 @@ export const updateAgentConfigFile = (req: AI.AgentConfigFileUpdateReq) => { }; export const listAgentSkills = (req: AI.AgentSkillsReq) => { - return http.post(`/ai/agents/skills/list`, req, TimeoutEnum.T_60S); + return http.post(`/ai/agents/skills/list`, req, TimeoutEnum.T_5M); }; export const searchAgentSkills = (req: AI.AgentSkillSearchReq) => { - return http.post(`/ai/agents/skills/search`, req, TimeoutEnum.T_60S); + return http.post(`/ai/agents/skills/search`, req, TimeoutEnum.T_5M); }; export const updateAgentSkill = (req: AI.AgentSkillUpdateReq) => { @@ -315,5 +315,5 @@ export const installAgentSkill = (req: AI.AgentSkillInstallReq) => { }; export const approveAgentChannelPairing = (req: AI.AgentChannelPairingApproveReq) => { - return http.post(`/ai/agents/channel/pairing/approve`, req, TimeoutEnum.T_60S); + return http.post(`/ai/agents/channel/pairing/approve`, req, TimeoutEnum.T_5M); }; diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index daa60998a..29092170c 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -168,6 +168,7 @@ const message = { uploadSuccess: 'Uploaded successfully', operateConfirm: 'To confirm, type: ', inputOrSelect: 'Select or enter', + selectOne: 'Please select one {0}', copyFailed: 'Failed to copy', operatorHelper: 'Run "{1}" on "{0}". This cannot be undone. Continue?', notFound: 'Sorry, the page you requested does not exist.', diff --git a/frontend/src/lang/modules/es-es.ts b/frontend/src/lang/modules/es-es.ts index 176fb5502..04592ccb6 100644 --- a/frontend/src/lang/modules/es-es.ts +++ b/frontend/src/lang/modules/es-es.ts @@ -169,6 +169,7 @@ const message = { uploadSuccess: 'Carga completada correctamente', operateConfirm: 'Para confirmar, escribe: ', inputOrSelect: 'Selecciona o ingresa', + selectOne: 'Selecciona un(a) {0}', copyFailed: 'Error al copiar', operatorHelper: 'Ejecuta "{1}" en "{0}". Esto no se puede deshacer. ¿Continuar?', notFound: 'Lo sentimos, la página que solicitó no existe.', diff --git a/frontend/src/lang/modules/ja.ts b/frontend/src/lang/modules/ja.ts index fd776c078..ae673ab09 100644 --- a/frontend/src/lang/modules/ja.ts +++ b/frontend/src/lang/modules/ja.ts @@ -166,6 +166,7 @@ const message = { uploadSuccess: '正常にアップロードされました', operateConfirm: '操作について確信している場合は、手動で入力してください。', inputOrSelect: '選択または入力してください', + selectOne: '{0}を1つ選択してください', copyFailed: 'コピーに失敗しました', operatorHelper: '操作「{1}」は「{0}」で実行され、元に戻すことはできません。続けたいですか?', notFound: '申し訳ありませんが、要求したページは存在しません。', diff --git a/frontend/src/lang/modules/ko.ts b/frontend/src/lang/modules/ko.ts index 5225bd82f..56915b2ca 100644 --- a/frontend/src/lang/modules/ko.ts +++ b/frontend/src/lang/modules/ko.ts @@ -166,6 +166,7 @@ const message = { uploadSuccess: '업로드 성공', operateConfirm: '작업을 확인하려면 수동으로 입력하십시오: ', inputOrSelect: '선택하거나 입력해 주십시오', + selectOne: '{0}을(를) 하나 선택해 주십시오', copyFailed: '복사 실패', operatorHelper: '"{0}"에 대해 "{1}" 작업이 수행되며 이 작업은 되돌릴 수 없습니다. 계속하시겠습니까?', notFound: '죄송합니다. 요청하신 페이지를 찾을 수 없습니다.', diff --git a/frontend/src/lang/modules/ms.ts b/frontend/src/lang/modules/ms.ts index 05b504d39..26950cd3f 100644 --- a/frontend/src/lang/modules/ms.ts +++ b/frontend/src/lang/modules/ms.ts @@ -166,6 +166,7 @@ const message = { uploadSuccess: 'Berjaya dimuat naik', operateConfirm: 'Jika anda pasti dengan operasi ini, sila masukkan secara manual: ', inputOrSelect: 'Sila pilih atau masukkan', + selectOne: 'Sila pilih satu {0}', copyFailed: 'Gagal disalin', operatorHelper: 'Operasi "{1}" akan dilakukan pada "{0}" dan tidak boleh diundur. Adakah anda mahu meneruskan?', diff --git a/frontend/src/lang/modules/pt-br.ts b/frontend/src/lang/modules/pt-br.ts index e86bf89e6..3cddc5417 100644 --- a/frontend/src/lang/modules/pt-br.ts +++ b/frontend/src/lang/modules/pt-br.ts @@ -166,6 +166,7 @@ const message = { uploadSuccess: 'Enviado com sucesso', operateConfirm: 'Se você tem certeza da operação, insira-a manualmente: ', inputOrSelect: 'Por favor, selecione ou insira', + selectOne: 'Selecione um(a) {0}', copyFailed: 'Falha ao copiar', operatorHelper: 'A operação "{1}" será realizada em "{0}" e não poderá ser desfeita. Deseja continuar?', notFound: 'Desculpe, a página solicitada não existe.', diff --git a/frontend/src/lang/modules/ru.ts b/frontend/src/lang/modules/ru.ts index 2d0f91f95..2530b8152 100644 --- a/frontend/src/lang/modules/ru.ts +++ b/frontend/src/lang/modules/ru.ts @@ -166,6 +166,7 @@ const message = { uploadSuccess: 'Успешно загружено', operateConfirm: 'Если вы уверены в операции, введите её вручную: ', inputOrSelect: 'Пожалуйста, выберите или введите', + selectOne: 'Пожалуйста, выберите один элемент: {0}', copyFailed: 'Не удалось скопировать', operatorHelper: 'Операция "{1}" будет выполнена над "{0}" и не может быть отменена. Хотите продолжить?', notFound: 'Извините, запрошенная страница не существует.', diff --git a/frontend/src/lang/modules/tr.ts b/frontend/src/lang/modules/tr.ts index 93a59b65d..56ddd34e8 100644 --- a/frontend/src/lang/modules/tr.ts +++ b/frontend/src/lang/modules/tr.ts @@ -169,6 +169,7 @@ const message = { uploadSuccess: 'Başarıyla yüklendi', operateConfirm: 'İşlemden eminseniz, lütfen manuel olarak girin: ', inputOrSelect: 'Lütfen seçin veya girin', + selectOne: 'Lütfen bir {0} seçin', copyFailed: 'Kopyalama başarısız', operatorHelper: '"{0}" üzerinde "{1}" işlemi gerçekleştirilecek ve geri alınamaz. Devam etmek istiyor musunuz?', diff --git a/frontend/src/lang/modules/zh-Hant.ts b/frontend/src/lang/modules/zh-Hant.ts index 3a56049e2..5a5448c27 100644 --- a/frontend/src/lang/modules/zh-Hant.ts +++ b/frontend/src/lang/modules/zh-Hant.ts @@ -165,6 +165,7 @@ const message = { uploadSuccess: '上傳成功', operateConfirm: '確認操作請輸入 ', inputOrSelect: '請選擇或輸入', + selectOne: '請選擇一個{0}', copyFailed: '複製失敗', operatorHelper: '將對以下{0}進行{1}操作,是否繼續?', backupSuccess: '備份成功', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index da6ab2009..6d8953f78 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -156,6 +156,7 @@ const message = { uploadSuccess: '上传成功', operateConfirm: '如果确认操作,请手动输入 ', inputOrSelect: '请选择或输入', + selectOne: '请选择一个{0}', copyFailed: '复制失败', operatorHelper: '将对以下{0}进行 {1} 操作,是否继续?', backupSuccess: '备份成功', diff --git a/frontend/src/views/ai/agents/agent/config/tabs/agents/binding/index.vue b/frontend/src/views/ai/agents/agent/config/tabs/agents/binding/index.vue index 560c29e73..fb3483139 100644 --- a/frontend/src/views/ai/agents/agent/config/tabs/agents/binding/index.vue +++ b/frontend/src/views/ai/agents/agent/config/tabs/agents/binding/index.vue @@ -35,7 +35,7 @@ @@ -51,6 +51,9 @@ diff --git a/frontend/src/views/ai/agents/agent/config/tabs/agents/create/index.vue b/frontend/src/views/ai/agents/agent/config/tabs/agents/create/index.vue index b9de4be41..70d7fd559 100644 --- a/frontend/src/views/ai/agents/agent/config/tabs/agents/create/index.vue +++ b/frontend/src/views/ai/agents/agent/config/tabs/agents/create/index.vue @@ -224,7 +224,7 @@ const submit = async () => { await createAgentRole({ agentId: agentId.value, name: form.name.trim(), - model: form.model.trim(), + model: form.model?.trim(), bindings: bindings.map((item) => ({ channel: item.channel, accountId: item.accountId, diff --git a/frontend/src/views/home/app/index.vue b/frontend/src/views/home/app/index.vue index 5af5829e9..9a8bc78d5 100644 --- a/frontend/src/views/home/app/index.vue +++ b/frontend/src/views/home/app/index.vue @@ -23,7 +23,7 @@