mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2026-03-22 07:29:35 +08:00
Merge branch 'main' of https://github.com/jina-ai/node-DeepResearch
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user