Skip to content

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

feat: test RunPod MU new version (#1771)

Thomas Kosmas13335a339dd7
diff --git a/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts b/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts
index 6649c735d..ab20413dc 100644
--- a/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts
+++ b/apps/api/src/scraper/scrapeURL/engines/pdf/index.ts
@@ -61,6 +61,38 @@ async function scrapePDFWithRunPodMU(
const abort = timeout ? AbortSignal.timeout(timeout) : undefined;
+ // test runpod mu new version
+ 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",