Skip to content

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

Test new mu version (#1958)

Thomas Kosmas8237be0e0cfd
diff --git a/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts b/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts
index 818d9ab4d..54dc173c9 100644
--- a/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts
+++ b/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts
@@ -51,6 +51,37 @@ async function scrapePDFWithRunPodMU(
meta.abort.throwIfAborted();
+ robustFetch({
+ url:
+ "https://api.runpod.ai/v2/" + process.env.RUNPOD_MU_POD_ID + "/runsync",
+ method: "POST",
+ headers: {
+ Authorization: `Bearer ${process.env.RUNPOD_MU_API_KEY}`,
+ },
+ body: {
+ input: {
+ file_content: base64Content,
+ filename: path.basename(tempFilePath) + ".pdf",
+ timeout,
+ created_at: Date.now(),
+ },
+ },
+ logger: meta.logger.child({
+ method: "scrapePDFWithRunPodMU/runsync/robustFetch",
+ }),
+ schema: z.object({
+ id: z.string(),
+ status: z.string(),
+ output: z
+ .object({
+ markdown: z.string(),
+ })
+ .optional(),
+ }),
+ mock: meta.mock,
+ abort,
+ }).catch(()=>{});
+
const podStart = await robustFetch({
url:
"https://api.runpod.ai/v2/" + process.env.RUNPOD_MUV2_POD_ID + "/runsync",