mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
feat: filter out blocked content
This commit is contained in:
parent
d6469c35f5
commit
ef5820729d
@ -477,7 +477,6 @@ export async function processURLs(
|
||||
const isGoodContent = data.content.length > spamDetectLength || await classifyText(data.content);
|
||||
if (!isGoodContent) {
|
||||
console.error(`Blocked content ${data.content.length}:`, url, data.content.slice(0, spamDetectLength));
|
||||
context.actionTracker.trackThink('blocked_content', schemaGen.languageCode, {url});
|
||||
throw new Error(`Blocked content ${url}`);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user