From 53a19bbfc106aa145cd6a7b6e690e2e23d5d05f6 Mon Sep 17 00:00:00 2001 From: Rob Gordon Date: Mon, 23 Sep 2024 19:11:54 -0400 Subject: [PATCH] Adjust Ratelimit --- api/prompt/_shared.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/prompt/_shared.ts b/api/prompt/_shared.ts index a2f1f0b3..590b58bc 100644 --- a/api/prompt/_shared.ts +++ b/api/prompt/_shared.ts @@ -39,7 +39,7 @@ export async function handleRateLimit( redis: kv, limiter: isPro ? Ratelimit.slidingWindow(3, "1m") - : Ratelimit.fixedWindow(2, "30d"), + : Ratelimit.fixedWindow(0, "30d"), }); const rateLimitKey = isPro ? `pro_${customerId}` : `unauth_${ip}`;