Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

refactor(proxy): type request_data on the alias rewrite helpers

yassind61908e24148
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: