mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-05 15:10:47 +08:00
fix(scrape): don't double-bill for scrape
This commit is contained in:
parent
7c5cda7b45
commit
1ab119c874
@ -134,7 +134,7 @@ export async function scrapeController(req: Request, res: Response) {
|
||||
const numTokens = (result.data && result.data.markdown) ? numTokensFromString(result.data.markdown, "gpt-3.5-turbo") : 0;
|
||||
|
||||
if (result.success) {
|
||||
let creditsToBeBilled = 1; // Assuming 1 credit per document
|
||||
let creditsToBeBilled = 0; // billing for doc done on queue end
|
||||
const creditsPerLLMExtract = 50;
|
||||
|
||||
if (extractorOptions.mode.includes("llm-extraction")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user