0

Nick: default to serper

This commit is contained in:
Nicolas 2024-04-24 18:00:25 -07:00
parent f2690f6909
commit a59ddf1855

View File

@ -28,7 +28,7 @@ export async function search({
timeout?: number;
}) : Promise<SearchResult[]> {
try {
if (process.env.SERPER_API_KEY && !tbs) {
if (process.env.SERPER_API_KEY ) {
return await serper_search(query, {num_results, tbs, filter, lang, country, location});
}
return await google_search(