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(proxy): tighten pass-through credential type annotations
mateo-berri5d7bfbc9509e
diff --git a/litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py b/litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.pyindex 65729adb3e5..dc53686b3cc 100644--- a/litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py+++ b/litellm/proxy/pass_through_endpoints/passthrough_endpoint_router.py@@ -22,7 +22,7 @@ def _get_proxy_llm_router() -> "Router | None":return llm_router-def _get_str_value(values: dict | None, key: str) -> str | None:+def _get_str_value(values: dict[str, object] | None, key: str) -> str | None:value: Final = values.get(key) if values is not None else Nonereturn value if isinstance(value, str) else Nonediff --git a/litellm/types/router.py b/litellm/types/router.pyindex ddb575545ea..86811dc5b3c 100644--- a/litellm/types/router.py+++ b/litellm/types/router.py@@ -382,8 +382,8 @@ class LiteLLMParamsTypedDict(TypedDict, total=False):## RESPONSES API → CHAT COMPLETIONS BRIDGE ##use_chat_completions_api: Optional[bool]## PASS-THROUGH ENDPOINTS ##- use_in_pass_through: Optional[bool]- litellm_credential_name: Optional[str]+ use_in_pass_through: bool | None+ litellm_credential_name: str | None## UNIFIED PROJECT/REGION ##region_name: Optional[str]## VERTEX AI ##