Skip to content

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

fix(api): pass trainingCapture in fire-pdf background refresh (#5438)

Abimael Martell25c13f47e58e
diff --git a/apps/api/src/lib/branding/color-roles.ts b/apps/api/src/lib/branding/color-roles.ts
index 96acf8c00..09ee92cd2 100644
--- a/apps/api/src/lib/branding/color-roles.ts
+++ b/apps/api/src/lib/branding/color-roles.ts
@@ -55,7 +55,7 @@ export function colorDistance(a?: string | null, b?: string | null): number {
* Nearly white, whatever its tint (#E5EDF5, #F2E8E1): on a light page that is
* a section background, not a brand color.
*/
-export function isPale(hex: string): boolean {
+function isPale(hex: string): boolean {
const h = hex.replace("#", "");
if (h.length < 6) return false;
const channels = [0, 2, 4].map(i => parseInt(h.slice(i, i + 2), 16));
diff --git a/apps/api/src/scraper/scrapeURL/engines/pdf/fire-pdf/background-refresh.ts b/apps/api/src/scraper/scrapeURL/engines/pdf/fire-pdf/background-refresh.ts
index c4de43c97..f8333b049 100644
--- a/apps/api/src/scraper/scrapeURL/engines/pdf/fire-pdf/background-refresh.ts
+++ b/apps/api/src/scraper/scrapeURL/engines/pdf/fire-pdf/background-refresh.ts
@@ -137,6 +137,8 @@ async function submit(
pageMarkers: args.pageMarkers,
// The cache is only consulted without an explicit table format.
tableFormat: undefined,
+ // Internal work under no team: never offered for training capture.
+ trainingCapture: undefined,
}),
refresh: true,
},