Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

chore(api): update lockdown billing (#3421)

Abimael Martell6bc5902a4d8e
diff --git a/apps/api/src/lib/scrape-billing.ts b/apps/api/src/lib/scrape-billing.ts
index e00adaddf..f4f07653b 100644
--- a/apps/api/src/lib/scrape-billing.ts
+++ b/apps/api/src/lib/scrape-billing.ts
@@ -49,6 +49,10 @@ export async function calculateCreditsToBeBilled(
return creditsToBeBilled;
}
+ if (options.lockdown) {
+ return 5;
+ }
+
let creditsToBeBilled = 1; // Assuming 1 credit per document
const changeTrackingFormat = hasFormatOfType(
options.formats,