0

Merge branch 'main' of https://github.com/mendableai/firecrawl into 194-sdk-ci-pipeline-for-publishing-pythonnode-sdk

This commit is contained in:
rafaelsideguide 2024-06-06 15:58:14 -03:00
commit 79ec9f04dc

View File

@ -37,15 +37,19 @@ const RATE_LIMITS = {
growth: 500, growth: 500,
}, },
preview: { preview: {
free: 5,
default: 5, default: 5,
}, },
account: { account: {
free: 20,
default: 20, default: 20,
}, },
crawlStatus: { crawlStatus: {
free: 150,
default: 150, default: 150,
}, },
testSuite: { testSuite: {
free: 10000,
default: 10000, default: 10000,
}, },
}; };
@ -65,19 +69,19 @@ const createRateLimiter = (keyPrefix, points) =>
export const previewRateLimiter = createRateLimiter( export const previewRateLimiter = createRateLimiter(
"preview", "preview",
RATE_LIMITS.preview RATE_LIMITS.preview.default
); );
export const serverRateLimiter = createRateLimiter( export const serverRateLimiter = createRateLimiter(
"server", "server",
RATE_LIMITS.account RATE_LIMITS.account.default
); );
export const crawlStatusRateLimiter = createRateLimiter( export const crawlStatusRateLimiter = createRateLimiter(
"crawl-status", "crawl-status",
RATE_LIMITS.crawlStatus RATE_LIMITS.crawlStatus.default
); );
export const testSuiteRateLimiter = createRateLimiter( export const testSuiteRateLimiter = createRateLimiter(
"test-suite", "test-suite",
RATE_LIMITS.testSuite RATE_LIMITS.testSuite.default
); );
export function getRateLimiter( export function getRateLimiter(