This commit is contained in:
Nicolas
2024-04-23 17:46:32 -07:00
parent fdb2789eaa
commit 479fa2f7f8
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export async function search({
timeout?: number;
}) {
try {
if (process.env.SERPER_API_KEY) {
if (process.env.SERPER_API_KEY && !tbs) {
return await serper_search(query, num_results);
}
return await google_search(