mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 09:52:49 +08:00
chore(core): extend workflow timeout (#10760)
This commit is contained in:
@@ -228,6 +228,8 @@ export function setupAIProvider(
|
|||||||
client,
|
client,
|
||||||
content: options.input,
|
content: options.input,
|
||||||
promptName: 'workflow:brainstorm',
|
promptName: 'workflow:brainstorm',
|
||||||
|
// 3 minutes
|
||||||
|
timeout: 180000,
|
||||||
workflow: true,
|
workflow: true,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -331,6 +333,8 @@ Could you make a new website based on these notes and send back just the html fi
|
|||||||
client,
|
client,
|
||||||
content: options.input,
|
content: options.input,
|
||||||
promptName: 'workflow:presentation',
|
promptName: 'workflow:presentation',
|
||||||
|
// 3 minutes
|
||||||
|
timeout: 180000,
|
||||||
workflow: true,
|
workflow: true,
|
||||||
postfix,
|
postfix,
|
||||||
});
|
});
|
||||||
@@ -358,7 +362,7 @@ Could you make a new website based on these notes and send back just the html fi
|
|||||||
...options,
|
...options,
|
||||||
client,
|
client,
|
||||||
content: options.input,
|
content: options.input,
|
||||||
timeout: 120000,
|
timeout: 180000,
|
||||||
promptName: promptName as PromptKey,
|
promptName: promptName as PromptKey,
|
||||||
workflow: !!promptName?.startsWith('workflow:'),
|
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,
|
...options,
|
||||||
client,
|
client,
|
||||||
content: options.input,
|
content: options.input,
|
||||||
timeout: 120000,
|
timeout: 180000,
|
||||||
promptName,
|
promptName,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user