mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2026-03-13 08:06:47 +00:00
Improve resilience: catch widget execution failures
This commit is contained in:
@@ -19,6 +19,9 @@ class APISearchAgent {
|
||||
chatHistory: input.chatHistory,
|
||||
followUp: input.followUp,
|
||||
llm: input.config.llm,
|
||||
}).catch((err) => {
|
||||
console.error(`Error executing widgets: ${err}`);
|
||||
return [];
|
||||
});
|
||||
|
||||
let searchPromise: Promise<ResearcherOutput> | null = null;
|
||||
|
||||
Reference in New Issue
Block a user