From a405ddc0432b3fbd9b634db2b935a2df40eeaaad Mon Sep 17 00:00:00 2001 From: ssongliu Date: Wed, 8 Apr 2026 18:24:10 +0800 Subject: [PATCH] fix: extend ai agent api timeouts --- frontend/src/api/modules/ai.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/src/api/modules/ai.ts b/frontend/src/api/modules/ai.ts index f049f78f9e62..da8193e76116 100644 --- a/frontend/src/api/modules/ai.ts +++ b/frontend/src/api/modules/ai.ts @@ -135,19 +135,19 @@ export const getAgentOverview = (req: AI.AgentOverviewReq) => { }; export const createAgentRole = (req: AI.AgentRoleCreateReq) => { - return http.post(`/ai/agents/agent/create`, req); + return http.post(`/ai/agents/agent/create`, req, TimeoutEnum.T_60S); }; export const deleteAgentRole = (req: AI.AgentRoleDeleteReq) => { - return http.post(`/ai/agents/agent/delete`, req); + return http.post(`/ai/agents/agent/delete`, req, TimeoutEnum.T_60S); }; export const bindAgentRole = (req: AI.AgentRoleBindReq) => { - return http.post(`/ai/agents/agent/bind`, req); + return http.post(`/ai/agents/agent/bind`, req, TimeoutEnum.T_60S); }; export const unbindAgentRole = (req: AI.AgentRoleBindReq) => { - return http.post(`/ai/agents/agent/unbind`, req); + return http.post(`/ai/agents/agent/unbind`, req, TimeoutEnum.T_60S); }; 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); + return http.post(`/ai/agents/agent/channels`, req, TimeoutEnum.T_60S); }; 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); + return http.post(`/ai/agents/agent/md/update`, req, TimeoutEnum.T_60S); }; export const getAgentProviders = () => {