mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 12:05:58 +08:00
fix(scrape): add further llm extraction catch
This commit is contained in:
parent
3d53f4e213
commit
2ab0dd2e15
@ -78,7 +78,7 @@ export async function scrapeHelper(
|
|||||||
error: "Request timed out",
|
error: "Request timed out",
|
||||||
returnCode: 408,
|
returnCode: 408,
|
||||||
}
|
}
|
||||||
} else if (typeof e === "string" && (e.includes("Error generating completions: ") || e.includes("Invalid schema for function"))) {
|
} else if (typeof e === "string" && (e.includes("Error generating completions: ") || e.includes("Invalid schema for function") || e.includes("LLM extraction did not match the extraction schema you provided."))) {
|
||||||
return {
|
return {
|
||||||
success: false,
|
success: false,
|
||||||
error: e,
|
error: e,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user