From a59ddf1855a8bf6fea69d0619ec35fabe2636692 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 24 Apr 2024 18:00:25 -0700 Subject: [PATCH] Nick: default to serper --- apps/api/src/search/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/search/index.ts b/apps/api/src/search/index.ts index f365811..d3b66aa 100644 --- a/apps/api/src/search/index.ts +++ b/apps/api/src/search/index.ts @@ -28,7 +28,7 @@ export async function search({ timeout?: number; }) : Promise { 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(