Skip to content

Commit

Permalink
In a fixed window
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-gordon committed Sep 30, 2024
1 parent bd8a78b commit bb40338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/prompt/_shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export async function handleRateLimit(
redis: kv,
limiter: isPro
? Ratelimit.slidingWindow(3, "1m")
: Ratelimit.fixedWindow(0, "30d"),
: Ratelimit.fixedWindow(2, "30d"),
});

const rateLimitKey = isPro ? `pro_${customerId}` : `unauth_${ip}`;
Expand Down

0 comments on commit bb40338

Please sign in to comment.