Nick:
This commit is contained in:
@@ -229,7 +229,7 @@ export async function scrapeController(req: Request, res: Response) {
|
|||||||
|
|
||||||
if (result.success) {
|
if (result.success) {
|
||||||
let creditsToBeBilled = 1;
|
let creditsToBeBilled = 1;
|
||||||
const creditsPerLLMExtract = 49;
|
const creditsPerLLMExtract = 4;
|
||||||
|
|
||||||
if (extractorOptions.mode.includes("llm-extraction")) {
|
if (extractorOptions.mode.includes("llm-extraction")) {
|
||||||
// creditsToBeBilled = creditsToBeBilled + (creditsPerLLMExtract * filteredDocs.length);
|
// creditsToBeBilled = creditsToBeBilled + (creditsPerLLMExtract * filteredDocs.length);
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ export async function scrapeController(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(req.body.extract && req.body.formats.includes("extract")) {
|
if(req.body.extract && req.body.formats.includes("extract")) {
|
||||||
creditsToBeBilled = 50;
|
creditsToBeBilled = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
billTeam(req.auth.team_id, creditsToBeBilled).catch(error => {
|
billTeam(req.auth.team_id, creditsToBeBilled).catch(error => {
|
||||||
|
|||||||
Reference in New Issue
Block a user