DeepImagix commited on
Commit
82a447e
Β·
verified Β·
1 Parent(s): 22d68ff

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -134,7 +134,7 @@ FREE_TIER_MODELS: set[str] = {
134
  # ─────────────────────────────────────────────────────────────
135
  _rate_store: dict = defaultdict(list) # {user_id: [timestamps]}
136
 
137
- def is_rate_limited(user_id: str, max_per_minute: int = 30) -> bool:
138
  """Sliding-window rate limit: max_per_minute requests per 60 s."""
139
  now = time.time()
140
  window = 120.0
 
134
  # ─────────────────────────────────────────────────────────────
135
  _rate_store: dict = defaultdict(list) # {user_id: [timestamps]}
136
 
137
+ def is_rate_limited(user_id: str, max_per_minute: int = 60) -> bool:
138
  """Sliding-window rate limit: max_per_minute requests per 60 s."""
139
  now = time.time()
140
  window = 120.0