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
fix(redis): type signed ElastiCache IAM URL
eugene-yao-zocdocf1cd2b03caac
diff --git a/litellm/_redis_credential_provider.py b/litellm/_redis_credential_provider.pyindex 85759af2a88..4d728ef21b6 100644--- a/litellm/_redis_credential_provider.py+++ b/litellm/_redis_credential_provider.py@@ -4,7 +4,7 @@ import asyncioimport threadingimport timefrom collections.abc import Callable-from typing import TYPE_CHECKING, Any, Final, Protocol+from typing import TYPE_CHECKING, Any, Final, Protocol, castfrom urllib.parse import quotefrom redis.credentials import CredentialProvider@@ -185,7 +185,7 @@ class ElastiCacheIAMCredentialProvider(CredentialProvider):self._region,expires=self._token_lifetime_seconds,).add_auth(request)- return self._user_name, request.url.removeprefix("https://")+ return self._user_name, cast(str, request.url).removeprefix("https://")def get_credentials(self) -> tuple[str, str]:return self._get_credentials()