Merge branch 'main' into 194-sdk-ci-pipeline-for-publishing-pythonnode-sdk

This commit is contained in:
rafaelsideguide 2024-06-06 15:36:28 -03:00
commit af0bfca847
2 changed files with 5 additions and 1 deletions

View File

@ -20,7 +20,7 @@ const emailTemplates: Record<
},
[NotificationType.RATE_LIMIT_REACHED]: {
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.",
},
};

View File

@ -7,6 +7,7 @@ const RATE_LIMITS = {
free: 2,
starter: 3,
standard: 5,
standardOld: 40,
scale: 20,
hobby: 3,
standardNew: 10,
@ -15,6 +16,7 @@ const RATE_LIMITS = {
scrape: {
free: 5,
starter: 20,
standard: 50,
standardOld: 40,
scale: 50,
hobby: 10,
@ -25,6 +27,7 @@ const RATE_LIMITS = {
free: 5,
starter: 20,
standard: 40,
standardOld: 40,
scale: 50,
hobby: 10,
standardNew: 50,
@ -65,5 +68,6 @@ export function getRateLimiter(mode: RateLimiterMode, token: string, plan?: stri
const planKey = plan ? plan.replace("-", "") : "starter";
const points = rateLimitConfig[planKey] || rateLimitConfig.preview;
return createRateLimiter(`${mode}-${planKey}`, points);
}