mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-07-31 01:06:47 +08:00
better logs
This commit is contained in:
parent
ad7e3f62d1
commit
b45e3bda13
@ -401,7 +401,9 @@ export async function generateCompletions({
|
||||
try {
|
||||
JSON.parse(text);
|
||||
return text;
|
||||
} catch (_) {}
|
||||
} catch (e) {
|
||||
logger.error("Even after repairing, failed to parse JSON", { error: e });
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
@ -545,7 +547,7 @@ export async function generateCompletions({
|
||||
throw new LLMRefusalError(error.message);
|
||||
}
|
||||
logger.error("LLM extraction failed", {
|
||||
error: lastError.message,
|
||||
error: lastError,
|
||||
model: currentModel.modelId,
|
||||
mode,
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user