mirror of
https://github.com/mendableai/firecrawl.git
synced 2024-11-16 11:42:24 +08:00
Merge branch 'main' into 194-sdk-ci-pipeline-for-publishing-pythonnode-sdk
This commit is contained in:
commit
af0bfca847
|
@ -20,7 +20,7 @@ const emailTemplates: Record<
|
||||||
},
|
},
|
||||||
[NotificationType.RATE_LIMIT_REACHED]: {
|
[NotificationType.RATE_LIMIT_REACHED]: {
|
||||||
subject: "Rate Limit Reached - Firecrawl",
|
subject: "Rate Limit Reached - Firecrawl",
|
||||||
html: "Hey there,<br/><p>You've hit your Firecrawl rate limit! Take a breather and try again in a few moments. If you need more higher rate limits, consider upgrading your plan. Check out our <a href='https://firecrawl.dev/pricing'>pricing page</a> for more info.</p><p>If you have any questions, feel free to reach out to us at <a href='mailto:hello@firecrawl.com'>hello@firecrawl.com</a></p><br/>Thanks,<br/>Firecrawl Team<br/>Ps. this email is only sent once every 7 days if you reach the limit.",
|
html: "Hey there,<br/><p>You've hit your Firecrawl rate limit! Take a breather and try again in a few moments. If you need higher rate limits, consider upgrading your plan. Check out our <a href='https://firecrawl.dev/pricing'>pricing page</a> for more info.</p><p>If you have any questions, feel free to reach out to us at <a href='mailto:hello@firecrawl.com'>hello@firecrawl.com</a></p><br/>Thanks,<br/>Firecrawl Team<br/><br/>Ps. this email is only sent once every 7 days if you reach the limit.",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,7 @@ const RATE_LIMITS = {
|
||||||
free: 2,
|
free: 2,
|
||||||
starter: 3,
|
starter: 3,
|
||||||
standard: 5,
|
standard: 5,
|
||||||
|
standardOld: 40,
|
||||||
scale: 20,
|
scale: 20,
|
||||||
hobby: 3,
|
hobby: 3,
|
||||||
standardNew: 10,
|
standardNew: 10,
|
||||||
|
@ -15,6 +16,7 @@ const RATE_LIMITS = {
|
||||||
scrape: {
|
scrape: {
|
||||||
free: 5,
|
free: 5,
|
||||||
starter: 20,
|
starter: 20,
|
||||||
|
standard: 50,
|
||||||
standardOld: 40,
|
standardOld: 40,
|
||||||
scale: 50,
|
scale: 50,
|
||||||
hobby: 10,
|
hobby: 10,
|
||||||
|
@ -25,6 +27,7 @@ const RATE_LIMITS = {
|
||||||
free: 5,
|
free: 5,
|
||||||
starter: 20,
|
starter: 20,
|
||||||
standard: 40,
|
standard: 40,
|
||||||
|
standardOld: 40,
|
||||||
scale: 50,
|
scale: 50,
|
||||||
hobby: 10,
|
hobby: 10,
|
||||||
standardNew: 50,
|
standardNew: 50,
|
||||||
|
@ -65,5 +68,6 @@ export function getRateLimiter(mode: RateLimiterMode, token: string, plan?: stri
|
||||||
const planKey = plan ? plan.replace("-", "") : "starter";
|
const planKey = plan ? plan.replace("-", "") : "starter";
|
||||||
const points = rateLimitConfig[planKey] || rateLimitConfig.preview;
|
const points = rateLimitConfig[planKey] || rateLimitConfig.preview;
|
||||||
|
|
||||||
|
|
||||||
return createRateLimiter(`${mode}-${planKey}`, points);
|
return createRateLimiter(`${mode}-${planKey}`, points);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user