Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(v1/search): if f-e search is available, only use that (#2199)

Gergő Móricza843a147b147
diff --git a/apps/api/src/search/index.ts b/apps/api/src/search/index.ts
index 666a51a79..79fed7b51 100644
--- a/apps/api/src/search/index.ts
+++ b/apps/api/src/search/index.ts
@@ -44,7 +44,7 @@ export async function search({
country,
location,
});
- if (results.length > 0) return results;
+ return results;
}
if (process.env.SERPER_API_KEY) {
logger.info("Using serper search");