diff --git a/horde/apis/v2/kobold.py b/horde/apis/v2/kobold.py index 8ad5b3d6..0fabd71d 100644 --- a/horde/apis/v2/kobold.py +++ b/horde/apis/v2/kobold.py @@ -505,7 +505,7 @@ def get(self): decorators = [ limiter.limit( - limit_value=lim.get_request_90min_limit_per_ip, + limit_value="20/hour", key_func=lim.get_request_path, ), limiter.limit(limit_value=lim.get_request_2sec_limit_per_ip, key_func=lim.get_request_path), diff --git a/horde/apis/v2/stable.py b/horde/apis/v2/stable.py index 3c86d4ec..c2247ec1 100644 --- a/horde/apis/v2/stable.py +++ b/horde/apis/v2/stable.py @@ -1482,7 +1482,7 @@ def get(self, style_id): decorators = [ limiter.limit( - limit_value=lim.get_request_90min_limit_per_ip, + limit_value="20/hour", key_func=lim.get_request_path, ), limiter.limit(limit_value=lim.get_request_2sec_limit_per_ip, key_func=lim.get_request_path),