Skip to content

Commit

Permalink
wip rate limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
northdpole committed Sep 8, 2023
1 parent 79473fb commit a243aa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/web/web_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,9 @@ def login_r(*args, **kwargs):

return login_r


@app.route("/rest/v1/completion", methods=["POST"])
@login_required
@limiter.limit("10 per minute", key_func = lambda : logged_in_user)
def chat_cre() -> Any:
message = request.get_json(force=True)
database = db.Node_collection()
Expand Down

0 comments on commit a243aa5

Please sign in to comment.