From a243aa5b9cb9938b819a33c5b1c2279daa5c47a7 Mon Sep 17 00:00:00 2001 From: Spyros Date: Fri, 8 Sep 2023 09:41:55 +0100 Subject: [PATCH] wip rate limiting --- application/web/web_main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/web/web_main.py b/application/web/web_main.py index 50955eed9..05925d7e1 100644 --- a/application/web/web_main.py +++ b/application/web/web_main.py @@ -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()