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
Add password to sync sentinel client (#9622)
jmarshall-medalliada953c74a1d3
diff --git a/litellm/_redis.py b/litellm/_redis.pyindex 5b2f85b1afc..5c3e7776d6e 100644--- a/litellm/_redis.py+++ b/litellm/_redis.py@@ -202,6 +202,7 @@ def init_redis_cluster(redis_kwargs) -> redis.RedisCluster:def _init_redis_sentinel(redis_kwargs) -> redis.Redis:sentinel_nodes = redis_kwargs.get("sentinel_nodes")+ sentinel_password = redis_kwargs.get("sentinel_password")service_name = redis_kwargs.get("service_name")if not sentinel_nodes or not service_name:@@ -212,7 +213,11 @@ def _init_redis_sentinel(redis_kwargs) -> redis.Redis:verbose_logger.debug("init_redis_sentinel: sentinel nodes are being initialized.")# Set up the Sentinel client- sentinel = redis.Sentinel(sentinel_nodes, socket_timeout=0.1)+ sentinel = redis.Sentinel(+ sentinel_nodes,+ socket_timeout=0.1,+ password=sentinel_password,+ )# Return the master instance for the given service