feat: filter out blocked content

This commit is contained in:
Han Xiao 2025-03-19 15:07:11 +08:00
parent d6469c35f5
commit ef5820729d

View File

@ -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}`);
}