mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-15 21:45:53 +08:00
wip. there's a bug on the batchExtract TypeError: Converting circular structure to JSON
This commit is contained in:
parent
4859078965
commit
e2dfc94640
@ -698,7 +698,6 @@ export async function performExtraction(
|
||||
singleAnswerResult = transformArrayToObject(rSchema, completionResult);
|
||||
|
||||
singleAnswerResult = deduplicateObjectsArray(singleAnswerResult);
|
||||
|
||||
// Track single answer extraction tokens and sources
|
||||
if (completionResult) {
|
||||
tokenUsage.push(singleAnswerTokenUsage);
|
||||
@ -717,8 +716,8 @@ export async function performExtraction(
|
||||
}
|
||||
}
|
||||
|
||||
singleAnswerResult = completionResult;
|
||||
singleAnswerCompletions = singleAnswerResult;
|
||||
// singleAnswerResult = completionResult;
|
||||
// singleAnswerCompletions = singleAnswerResult;
|
||||
|
||||
// Update token usage in traces
|
||||
// if (completions && completions.numTokens) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user