From 764545eea5f221d4237e37831f4cb657d75e1424 Mon Sep 17 00:00:00 2001 From: Rob Gordon Date: Sun, 11 Aug 2024 12:51:56 -0400 Subject: [PATCH] Free generations costly --- 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 069c0d6a..d97c12be 100644 --- a/api/prompt/_shared.ts +++ b/api/prompt/_shared.ts @@ -30,7 +30,7 @@ export async function handleRateLimit(req: Request) { redis: kv, limiter: isPro ? Ratelimit.slidingWindow(3, "1m") - : Ratelimit.fixedWindow(3, "30d"), + : Ratelimit.fixedWindow(1, "30d"), }); const rateLimitKey = isPro ? `pro_${customerId}` : `unauth_${ip}`;