From d61908e241483a6b968cc577020baeee65262b9b Mon Sep 17 00:00:00 2001 From: yassin Date: Tue, 15 Sep 2026 23:28:01 +0000 Subject: [PATCH] refactor(proxy): type request_data on the alias rewrite helpers Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/proxy/auth/user_api_key_auth.py | 2 +- litellm/proxy/common_utils/http_parsing_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/auth/user_api_key_auth.py b/litellm/proxy/auth/user_api_key_auth.py index 15dd58baf35..4a35310272c 100644 --- a/litellm/proxy/auth/user_api_key_auth.py +++ b/litellm/proxy/auth/user_api_key_auth.py @@ -245,7 +245,7 @@ async def _normalize_claude_model( async def _resolve_router_settings_model_group_alias( - request_data: dict, # mutable-ok: the request body is rewritten in place for every downstream reader + request_data: dict[str, object], # mutable-ok: the request body is rewritten in place for every downstream reader valid_token: UserAPIKeyAuth, request: Request | None, route: str, diff --git a/litellm/proxy/common_utils/http_parsing_utils.py b/litellm/proxy/common_utils/http_parsing_utils.py index a1dcc6e8ece..f5b6a0a766d 100644 --- a/litellm/proxy/common_utils/http_parsing_utils.py +++ b/litellm/proxy/common_utils/http_parsing_utils.py @@ -267,7 +267,7 @@ def _safe_set_request_parsed_body( def rewrite_request_model( - request_data: dict, # mutable-ok: the request body is rewritten in place for every downstream reader + request_data: dict[str, object], # mutable-ok: the request body is rewritten in place for every downstream reader request: Request | None, model: str, ) -> None: