From c3b407041ee626cd99b29eaa6e1df555b800dcd5 Mon Sep 17 00:00:00 2001 From: darkskygit Date: Wed, 12 Mar 2025 08:26:34 +0000 Subject: [PATCH] chore(core): extend workflow timeout (#10760) --- .../core/src/blocksuite/ai/provider/setup-provider.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/frontend/core/src/blocksuite/ai/provider/setup-provider.tsx b/packages/frontend/core/src/blocksuite/ai/provider/setup-provider.tsx index 04ff2f8fc..bd03976dd 100644 --- a/packages/frontend/core/src/blocksuite/ai/provider/setup-provider.tsx +++ b/packages/frontend/core/src/blocksuite/ai/provider/setup-provider.tsx @@ -228,6 +228,8 @@ export function setupAIProvider( client, content: options.input, promptName: 'workflow:brainstorm', + // 3 minutes + timeout: 180000, workflow: true, }); }); @@ -331,6 +333,8 @@ Could you make a new website based on these notes and send back just the html fi client, content: options.input, promptName: 'workflow:presentation', + // 3 minutes + timeout: 180000, workflow: true, postfix, }); @@ -358,7 +362,7 @@ Could you make a new website based on these notes and send back just the html fi ...options, client, content: options.input, - timeout: 120000, + timeout: 180000, promptName: promptName as PromptKey, workflow: !!promptName?.startsWith('workflow:'), }); @@ -373,7 +377,7 @@ Could you make a new website based on these notes and send back just the html fi ...options, client, content: options.input, - timeout: 120000, + timeout: 180000, promptName, }); });