Nick: __experimental

This commit is contained in:
Nicolas 2025-06-02 19:58:56 -03:00
parent 72be73473f
commit ef789ce8d7
3 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,7 @@ export async function scrapeController(
teamId: req.auth.team_id,
saveScrapeResultToGCS: process.env.GCS_FIRE_ENGINE_BUCKET_NAME ? true : false,
unnormalizedSourceURL: preNormalizedBody.url,
useCache: req.body.__experimental_cache ? true : false,
},
origin: req.body.origin,
startTime,

View File

@ -309,6 +309,7 @@ const baseScrapeOptions = z
useMock: z.string().optional(),
blockAds: z.boolean().default(true),
proxy: z.enum(["basic", "stealth", "auto"]).optional(),
__experimental_cache: z.boolean().default(false).optional(),
})
.strict(strictMessage);

View File

@ -131,6 +131,7 @@ export async function performDeepResearch(options: DeepResearchServiceOptions) {
removeBase64Images: false,
fastMode: false,
blockAds: false,
__experimental_cache: true,
},
}, logger, costTracking, acuc?.flags ?? null);
return response.length > 0 ? response : [];