mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 21:29:00 +08:00
Nick: __experimental
This commit is contained in:
parent
72be73473f
commit
ef789ce8d7
@ -52,6 +52,7 @@ export async function scrapeController(
|
|||||||
teamId: req.auth.team_id,
|
teamId: req.auth.team_id,
|
||||||
saveScrapeResultToGCS: process.env.GCS_FIRE_ENGINE_BUCKET_NAME ? true : false,
|
saveScrapeResultToGCS: process.env.GCS_FIRE_ENGINE_BUCKET_NAME ? true : false,
|
||||||
unnormalizedSourceURL: preNormalizedBody.url,
|
unnormalizedSourceURL: preNormalizedBody.url,
|
||||||
|
useCache: req.body.__experimental_cache ? true : false,
|
||||||
},
|
},
|
||||||
origin: req.body.origin,
|
origin: req.body.origin,
|
||||||
startTime,
|
startTime,
|
||||||
|
@ -309,6 +309,7 @@ const baseScrapeOptions = z
|
|||||||
useMock: z.string().optional(),
|
useMock: z.string().optional(),
|
||||||
blockAds: z.boolean().default(true),
|
blockAds: z.boolean().default(true),
|
||||||
proxy: z.enum(["basic", "stealth", "auto"]).optional(),
|
proxy: z.enum(["basic", "stealth", "auto"]).optional(),
|
||||||
|
__experimental_cache: z.boolean().default(false).optional(),
|
||||||
})
|
})
|
||||||
.strict(strictMessage);
|
.strict(strictMessage);
|
||||||
|
|
||||||
|
@ -131,6 +131,7 @@ export async function performDeepResearch(options: DeepResearchServiceOptions) {
|
|||||||
removeBase64Images: false,
|
removeBase64Images: false,
|
||||||
fastMode: false,
|
fastMode: false,
|
||||||
blockAds: false,
|
blockAds: false,
|
||||||
|
__experimental_cache: true,
|
||||||
},
|
},
|
||||||
}, logger, costTracking, acuc?.flags ?? null);
|
}, logger, costTracking, acuc?.flags ?? null);
|
||||||
return response.length > 0 ? response : [];
|
return response.length > 0 ? response : [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user