mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-08 18:39:01 +08:00
Nick: temp rl for /extract
This commit is contained in:
parent
a199208e21
commit
51cb4b1615
@ -204,7 +204,7 @@ v1Router.ws("/crawl/:jobId", crawlStatusWSController);
|
||||
|
||||
v1Router.post(
|
||||
"/extract",
|
||||
authMiddleware(RateLimiterMode.Scrape),
|
||||
authMiddleware(RateLimiterMode.Extract),
|
||||
checkCreditsMiddleware(1),
|
||||
wrap(extractController),
|
||||
);
|
||||
|
@ -71,6 +71,23 @@ const RATE_LIMITS = {
|
||||
etier2a: 2500,
|
||||
etierscale1: 1500,
|
||||
},
|
||||
extract: {
|
||||
default: 20,
|
||||
free: 10,
|
||||
starter: 100,
|
||||
standard: 100,
|
||||
standardOld: 100,
|
||||
scale: 300,
|
||||
hobby: 20,
|
||||
standardNew: 100,
|
||||
standardnew: 100,
|
||||
growth: 300,
|
||||
growthdouble: 300,
|
||||
etier2c: 1000,
|
||||
etier1a: 1000,
|
||||
etier2a: 1000,
|
||||
etierscale1: 1000,
|
||||
},
|
||||
preview: {
|
||||
free: 5,
|
||||
default: 5,
|
||||
|
@ -132,6 +132,7 @@ export enum RateLimiterMode {
|
||||
Preview = "preview",
|
||||
Search = "search",
|
||||
Map = "map",
|
||||
Extract = "extract",
|
||||
}
|
||||
|
||||
export type AuthResponse =
|
||||
|
Loading…
x
Reference in New Issue
Block a user