This commit is contained in:
Nicolas 2024-09-12 12:51:14 -04:00
parent a2903e75cf
commit 620b02f9ca
2 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ export async function scrapeController(req: Request, res: Response) {
if (result.success) {
let creditsToBeBilled = 1;
const creditsPerLLMExtract = 49;
const creditsPerLLMExtract = 4;
if (extractorOptions.mode.includes("llm-extraction")) {
// creditsToBeBilled = creditsToBeBilled + (creditsPerLLMExtract * filteredDocs.length);

View File

@ -103,7 +103,7 @@ export async function scrapeController(
return;
}
if(req.body.extract && req.body.formats.includes("extract")) {
creditsToBeBilled = 50;
creditsToBeBilled = 5;
}
billTeam(req.auth.team_id, creditsToBeBilled).catch(error => {