Nick: default to serper
This commit is contained in:
parent
f2690f6909
commit
a59ddf1855
@ -28,7 +28,7 @@ export async function search({
|
|||||||
timeout?: number;
|
timeout?: number;
|
||||||
}) : Promise<SearchResult[]> {
|
}) : Promise<SearchResult[]> {
|
||||||
try {
|
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 serper_search(query, {num_results, tbs, filter, lang, country, location});
|
||||||
}
|
}
|
||||||
return await google_search(
|
return await google_search(
|
||||||
|
Loading…
Reference in New Issue
Block a user