Skip to content

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

FIX IT

Gergő Móriczedd4c3090800
diff --git a/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts b/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts
index cc63a09fd..d2ad2a069 100644
--- a/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts
+++ b/apps/api/src/scraper/scrapeURL/lib/extractSmartScrape.ts
@@ -272,7 +272,7 @@ export async function extractData({
let smartscrapeResults: SmartScrapeResult[];
if (isSingleUrl) {
smartscrapeResults = [
- await smartScrape(urls[0], extract?.smartscrape_prompt, extractId),
+ await smartScrape(urls[0], extract?.smartscrape_prompt, undefined, extractId),
];
smartScrapeCost += smartscrapeResults[0].tokenUsage;
smartScrapeCallCount++;
@@ -284,6 +284,7 @@ export async function extractData({
return await smartScrape(
urls[page.page_index],
page.smartscrape_prompt,
+ undefined,
extractId,
);
}),