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
Merge branch 'main' into fix/preview_token
Nicolasf45b3c0155eb
diff --cc apps/api/src/controllers/auth.tsindex bfcc5ac08,b0843cdf1..e8879fe7c--- a/apps/api/src/controllers/auth.ts+++ b/apps/api/src/controllers/auth.ts@@@ -100,7 -100,7 +100,8 @@@ export async function getACUC? "auth_credit_usage_chunk_extract": "auth_credit_usage_chunk_test_22_credit_pack_n_extract";while (retries < maxRetries) {- const client = Math.random() > 0.75 ? supabase_rr_service : supabase_service;- const client = Math.random() > 0.5 ? supabase_rr_service : supabase_service;++ const client =++ Math.random() > 0.5 ? supabase_rr_service : supabase_service;({ data, error } = await client.rpc(rpcName,{ input_key: api_key },@@@ -200,7 -200,9 +201,12 @@@ export async function supaAuthenticateUlet priceId: string | null = null;let chunk: AuthCreditUsageChunk | null = null;let plan: PlanType = "free";+ if (token == "this_is_just_a_preview_token") {- throw new Error("Unauthenticated Playground calls are temporarily disabled due to abuse. Please sign up.");-++ throw new Error(++ "Unauthenticated Playground calls are temporarily disabled due to abuse. Please sign up.",++ );++ }+ if (token == process.env.PREVIEW_TOKEN) {if (mode == RateLimiterMode.CrawlStatus) {rateLimiter = getRateLimiter(RateLimiterMode.CrawlStatus, token);} else if (mode == RateLimiterMode.ExtractStatus) {