Skip to content

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

Feat/test new mu alt (#2270)

Thomas Kosmas7b9173795314
diff --git a/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts b/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts
index 66f2f0e4d..7b300fac4 100644
--- a/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts
+++ b/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts
@@ -71,7 +71,9 @@ async function scrapePDFWithRunPodMU(
if (
process.env.PDF_MU_V2_EXPERIMENT === "true" &&
- process.env.PDF_MU_V2_BASE_URL
+ process.env.PDF_MU_V2_BASE_URL &&
+ Math.random() * 100 <
+ Number(process.env.PDF_MU_V2_EXPERIMENT_PERCENT ?? "100")
) {
(async () => {
const startedAt = Date.now();