mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 04:29:01 +08:00
Nick: fixed issues
This commit is contained in:
parent
3039cc264f
commit
ecd07be49e
@ -145,7 +145,7 @@ export async function scrapSingleUrl(
|
|||||||
|
|
||||||
if (extractorOptions) {
|
if (extractorOptions) {
|
||||||
extractorOptions = {
|
extractorOptions = {
|
||||||
mode: extractorOptions.mode ?? "llm-extraction-from-markdown",
|
mode: extractorOptions?.mode ?? "llm-extraction-from-markdown",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -391,7 +391,7 @@ export async function scrapSingleUrl(
|
|||||||
html: pageOptions.includeHtml ? html : undefined,
|
html: pageOptions.includeHtml ? html : undefined,
|
||||||
rawHtml:
|
rawHtml:
|
||||||
pageOptions.includeRawHtml ||
|
pageOptions.includeRawHtml ||
|
||||||
extractorOptions.mode === "llm-extraction-from-raw-html"
|
extractorOptions?.mode === "llm-extraction-from-raw-html"
|
||||||
? rawHtml
|
? rawHtml
|
||||||
: undefined,
|
: undefined,
|
||||||
linksOnPage: pageOptions.includeLinks ? linksOnPage : undefined,
|
linksOnPage: pageOptions.includeLinks ? linksOnPage : undefined,
|
||||||
@ -410,7 +410,7 @@ export async function scrapSingleUrl(
|
|||||||
html: pageOptions.includeHtml ? html : undefined,
|
html: pageOptions.includeHtml ? html : undefined,
|
||||||
rawHtml:
|
rawHtml:
|
||||||
pageOptions.includeRawHtml ||
|
pageOptions.includeRawHtml ||
|
||||||
extractorOptions.mode === "llm-extraction-from-raw-html"
|
extractorOptions?.mode === "llm-extraction-from-raw-html"
|
||||||
? rawHtml
|
? rawHtml
|
||||||
: undefined,
|
: undefined,
|
||||||
metadata: {
|
metadata: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user