Skip to content

Commit

Permalink
Adjust Ratelimit
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-gordon committed Sep 23, 2024
1 parent c5877fd commit 53a19bb
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(2, "30d"),
: Ratelimit.fixedWindow(0, "30d"),
});

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

0 comments on commit 53a19bb

Please sign in to comment.