This commit is contained in:
Gergő Móricz 2025-04-16 00:11:27 -07:00
parent a06910115b
commit edd4c30908

View File

@ -272,7 +272,7 @@ export async function extractData({
let smartscrapeResults: SmartScrapeResult[]; let smartscrapeResults: SmartScrapeResult[];
if (isSingleUrl) { if (isSingleUrl) {
smartscrapeResults = [ smartscrapeResults = [
await smartScrape(urls[0], extract?.smartscrape_prompt, extractId), await smartScrape(urls[0], extract?.smartscrape_prompt, undefined, extractId),
]; ];
smartScrapeCost += smartscrapeResults[0].tokenUsage; smartScrapeCost += smartscrapeResults[0].tokenUsage;
smartScrapeCallCount++; smartScrapeCallCount++;
@ -284,6 +284,7 @@ export async function extractData({
return await smartScrape( return await smartScrape(
urls[page.page_index], urls[page.page_index],
page.smartscrape_prompt, page.smartscrape_prompt,
undefined,
extractId, extractId,
); );
}), }),