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(redis): type botocore credentials without Any
eugene-yao-zocdoccd4073895ff9
diff --git a/litellm/_redis_credential_provider.py b/litellm/_redis_credential_provider.pyindex 4441d318373..15f625dc8b4 100644--- a/litellm/_redis_credential_provider.py+++ b/litellm/_redis_credential_provider.py@@ -4,15 +4,13 @@ import asyncioimport threadingimport timefrom collections.abc import Callable-from typing import TYPE_CHECKING, Any, Final, Protocol+from typing import TYPE_CHECKING, Final, Protocolfrom urllib.parse import quotefrom redis.credentials import CredentialProviderif TYPE_CHECKING:from botocore.credentials import Credentials-else:- Credentials = Any # rebind-ok: runtime alias for the type-checking-only botocore import# Azure AD scope for Redis Cache for Azure.AZURE_REDIS_SCOPE: Final = "https://redis.azure.com/.default"