Skip to content

Commit c3b4070

Browse files
committed
chore(core): extend workflow timeout (#10760)
1 parent 4371283 commit c3b4070

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/frontend/core/src/blocksuite/ai/provider/setup-provider.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,8 @@ export function setupAIProvider(
228228
client,
229229
content: options.input,
230230
promptName: 'workflow:brainstorm',
231+
// 3 minutes
232+
timeout: 180000,
231233
workflow: true,
232234
});
233235
});
@@ -331,6 +333,8 @@ Could you make a new website based on these notes and send back just the html fi
331333
client,
332334
content: options.input,
333335
promptName: 'workflow:presentation',
336+
// 3 minutes
337+
timeout: 180000,
334338
workflow: true,
335339
postfix,
336340
});
@@ -358,7 +362,7 @@ Could you make a new website based on these notes and send back just the html fi
358362
...options,
359363
client,
360364
content: options.input,
361-
timeout: 120000,
365+
timeout: 180000,
362366
promptName: promptName as PromptKey,
363367
workflow: !!promptName?.startsWith('workflow:'),
364368
});
@@ -373,7 +377,7 @@ Could you make a new website based on these notes and send back just the html fi
373377
...options,
374378
client,
375379
content: options.input,
376-
timeout: 120000,
380+
timeout: 180000,
377381
promptName,
378382
});
379383
});

0 commit comments

Comments
 (0)