Skip to content

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

fix acuc extract preview

Gergő Móriczf451b71308e3
diff --git a/apps/api/src/controllers/auth.ts b/apps/api/src/controllers/auth.ts
index e6a16cd71..c9c0e4b22 100644
--- a/apps/api/src/controllers/auth.ts
+++ b/apps/api/src/controllers/auth.ts
@@ -148,7 +148,8 @@ export async function getACUC(
): Promise<AuthCreditUsageChunk | null> {
let isExtract =
mode === RateLimiterMode.Extract ||
- mode === RateLimiterMode.ExtractStatus;
+ mode === RateLimiterMode.ExtractStatus ||
+ mode === RateLimiterMode.ExtractAgentPreview;
if (api_key === process.env.PREVIEW_TOKEN) {
const acuc = mockPreviewACUC(api_key, isExtract);
@@ -264,7 +265,8 @@ export async function getACUCTeam(
): Promise<AuthCreditUsageChunkFromTeam | null> {
let isExtract =
mode === RateLimiterMode.Extract ||
- mode === RateLimiterMode.ExtractStatus;
+ mode === RateLimiterMode.ExtractStatus ||
+ mode === RateLimiterMode.ExtractAgentPreview;
if (team_id.startsWith("preview")) {
const acuc = mockPreviewACUC(team_id, isExtract);