Skip to content

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

Update search.ts

Nicolas52c1a348cf8a
diff --git a/apps/api/src/controllers/v2/search.ts b/apps/api/src/controllers/v2/search.ts
index 199ffae25..c7bb77835 100644
--- a/apps/api/src/controllers/v2/search.ts
+++ b/apps/api/src/controllers/v2/search.ts
@@ -262,13 +262,6 @@ export async function searchController(
type: searchTypes,
})) as SearchV2Response;
- // Apply URL filtering if needed
- if (req.body.ignoreInvalidURLs && searchResponse.web) {
- searchResponse.web = searchResponse.web.filter(
- result => !isUrlBlocked(result.url, req.acuc?.flags ?? null),
- );
- }
-
// Add category labels to web results
if (searchResponse.web && searchResponse.web.length > 0) {
searchResponse.web = searchResponse.web.map(result => ({