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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
refactor(passthrough): type the timeout resolver mapping parameters
mateo-berrid4ee62eb8c30
diff --git a/litellm/passthrough/timeout_utils.py b/litellm/passthrough/timeout_utils.pyindex 0170d93c156..829277105e3 100644--- a/litellm/passthrough/timeout_utils.py+++ b/litellm/passthrough/timeout_utils.py@@ -1,4 +1,5 @@import sys+from collections.abc import Mappingfrom typing import Finalfrom pydantic import BaseModel, ConfigDict@@ -42,8 +43,8 @@ def resolve_pass_through_request_timeout(def resolve_llm_passthrough_timeout(- kwargs: dict | None = None,- litellm_params: dict | None = None,+ kwargs: Mapping[str, object] | None = None,+ litellm_params: Mapping[str, object] | None = None,router_timeout: float | str | None = None,router_stream_timeout: float | str | None = None,) -> float: