mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
Merge branch 'main' of https://github.com/jina-ai/node-DeepResearch
This commit is contained in:
commit
6cc48d07fd
@ -33,6 +33,10 @@ export async function serperSearchOld(query: string): Promise<{ response: Serper
|
||||
timeout: 10000
|
||||
});
|
||||
|
||||
if (response.status !== 200) {
|
||||
throw new Error(`Serper search failed: ${response.status} ${response.statusText}`)
|
||||
}
|
||||
|
||||
// Maintain the same return structure as the original code
|
||||
return { response: response.data };
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user