From 778a7f8fd2972ebf621d0609dbe24e52101abbbc Mon Sep 17 00:00:00 2001 From: inference-bot Date: Thu, 1 Oct 2026 09:51:57 -0600 Subject: [PATCH] =?UTF-8?q?Rate-limit=20the=20key-injector=20proxy=20path?= =?UTF-8?q?=20(120/min)=20=E2=80=94=20only=20unthrottled=20sensitive=20rou?= =?UTF-8?q?te=20left?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/main.py b/app/main.py index 050d580..317a086 100644 --- a/app/main.py +++ b/app/main.py @@ -1580,6 +1580,7 @@ async def list_models(request: Request): @app.api_route("/v1/{path:path}", methods=["GET", "POST", "PUT", "DELETE", "PATCH"]) +@limiter.limit("120/minute") async def inject_key(request: Request, path: str): """Read the member's email from a header, inject their key, forward to LiteLLM.""" # Verify the request came through the chat frontend, so a direct caller