Skip to content

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

Raise the privileged large-PDF cap to the 256MB architectural ceiling (#4437)

Abimael Martell83df13affe63
diff --git a/apps/api/src/config.ts b/apps/api/src/config.ts
index f1b638337..62b1309f4 100644
--- a/apps/api/src/config.ts
+++ b/apps/api/src/config.ts
@@ -387,7 +387,7 @@ const configSchema = z.object({
.number()
.int()
.positive()
- .default(200 * 1024 * 1024),
+ .default(256 * 1024 * 1024),
// Comma-separated team ids granted the privileged cap.
PDF_BY_REFERENCE_PRIVILEGED_TEAM_IDS: z.string().optional(),
diff --git a/apps/api/src/scraper/scrapeURL/engines/pdf/__tests__/fireEngineHandoff.test.ts b/apps/api/src/scraper/scrapeURL/engines/pdf/__tests__/fireEngineHandoff.test.ts
index 4648dd539..24b57cece 100644
--- a/apps/api/src/scraper/scrapeURL/engines/pdf/__tests__/fireEngineHandoff.test.ts
+++ b/apps/api/src/scraper/scrapeURL/engines/pdf/__tests__/fireEngineHandoff.test.ts
@@ -202,10 +202,10 @@ describe("largePdfLimitBytes (team tiers)", () => {
expect(largePdfLimitBytes(metaForTeam(undefined))).toBe(50 * 1024 * 1024);
});
- it("returns the privileged cap (200MB) for allowlisted teams", () => {
+ it("returns the privileged cap (256MB) for allowlisted teams", () => {
(config as any).PDF_BY_REFERENCE_PRIVILEGED_TEAM_IDS = "team-a, team-b";
- expect(largePdfLimitBytes(metaForTeam("team-a"))).toBe(200 * 1024 * 1024);
- expect(largePdfLimitBytes(metaForTeam("team-b"))).toBe(200 * 1024 * 1024);
+ expect(largePdfLimitBytes(metaForTeam("team-a"))).toBe(256 * 1024 * 1024);
+ expect(largePdfLimitBytes(metaForTeam("team-b"))).toBe(256 * 1024 * 1024);
});
it("clamps configured caps to the 256MB architectural ceiling", () => {