mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 13:48:59 +08:00
FIX IT
This commit is contained in:
parent
a06910115b
commit
edd4c30908
@ -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,
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user