Skip to content

Commit

Permalink
Adjust Ratelimit (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-gordon authored Sep 23, 2024
1 parent c5877fd commit f5668c7
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 f5668c7

Please sign in to comment.