From 97e29cc7d56463b8b251757f75547293fcdf4eff Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 3 Nov 2025 23:32:18 -0500 Subject: [PATCH] Change limiter strategy to fixed window --- libretranslate/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretranslate/app.py b/libretranslate/app.py index d8a78dc..6ec5cc8 100644 --- a/libretranslate/app.py +++ b/libretranslate/app.py @@ -277,7 +277,7 @@ def create_app(args): storage_uri=args.req_limit_storage, default_limits_deduct_when=lambda req: True, # Force cost to be called after the request default_limits_cost=limits_cost, - strategy="moving-window", + strategy="fixed-window", ) else: from .no_limiter import Limiter