Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥
TypeScript aiai-agentsai-crawlerai-scrapingai-searchcrawlerdata-extractionhtml-to-markdownllmmarkdownscraperscrapingweb-crawlerweb-dataweb-data-extractionweb-scraperweb-scrapingweb-searchwebscraping
Nick: increased rate limits
Nicolas98a39b39ab5c
diff --git a/apps/api/src/services/rate-limiter.ts b/apps/api/src/services/rate-limiter.tsindex d4834a175..29b14f830 100644--- a/apps/api/src/services/rate-limiter.ts+++ b/apps/api/src/services/rate-limiter.ts@@ -2,21 +2,21 @@ import { RateLimiterRedis } from "rate-limiter-flexible";import * as redis from "redis";import { RateLimiterMode } from "../../src/types";-const MAX_CRAWLS_PER_MINUTE_STARTER = 2;-const MAX_CRAWLS_PER_MINUTE_STANDARD = 4;+const MAX_CRAWLS_PER_MINUTE_STARTER = 3;+const MAX_CRAWLS_PER_MINUTE_STANDARD = 5;const MAX_CRAWLS_PER_MINUTE_SCALE = 20;-const MAX_SCRAPES_PER_MINUTE_STARTER = 10;-const MAX_SCRAPES_PER_MINUTE_STANDARD = 15;-const MAX_SCRAPES_PER_MINUTE_SCALE = 30;+const MAX_SCRAPES_PER_MINUTE_STARTER = 20;+const MAX_SCRAPES_PER_MINUTE_STANDARD = 30;+const MAX_SCRAPES_PER_MINUTE_SCALE = 50;-const MAX_SEARCHES_PER_MINUTE_STARTER = 10;-const MAX_SEARCHES_PER_MINUTE_STANDARD = 15;-const MAX_SEARCHES_PER_MINUTE_SCALE = 30;+const MAX_SEARCHES_PER_MINUTE_STARTER = 20;+const MAX_SEARCHES_PER_MINUTE_STANDARD = 30;+const MAX_SEARCHES_PER_MINUTE_SCALE = 50;const MAX_REQUESTS_PER_MINUTE_PREVIEW = 5;const MAX_REQUESTS_PER_MINUTE_ACCOUNT = 20;-const MAX_REQUESTS_PER_MINUTE_CRAWL_STATUS = 120;+const MAX_REQUESTS_PER_MINUTE_CRAWL_STATUS = 150;export const redisClient = redis.createClient({url: process.env.REDIS_URL,