FIX IT
This commit is contained in:
@@ -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,
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user