Skip to content

Commit

Permalink
feat: add limiter for styles
Browse files Browse the repository at this point in the history
  • Loading branch information
db0 committed Nov 7, 2024
1 parent 87bd2d6 commit 2fd0106
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion horde/apis/v2/kobold.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion horde/apis/v2/stable.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2fd0106

Please sign in to comment.