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[];
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,
);
}),