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 pod lock manager
Ishaan Jaff8b12a2e5dc83
diff --git a/litellm/proxy/proxy_config.yaml b/litellm/proxy/proxy_config.yamlindex 17658df9031..fe8d73d26aa 100644--- a/litellm/proxy/proxy_config.yaml+++ b/litellm/proxy/proxy_config.yaml@@ -4,3 +4,12 @@ model_list:model: openai/fakeapi_key: fake-keyapi_base: https://exampleopenaiendpoint-production.up.railway.app/++general_settings:+ use_redis_transaction_buffer: true++litellm_settings:+ cache: True+ cache_params:+ type: redis+ supported_call_types: []\ No newline at end of filediff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.pyindex 0b87444628d..eb733e7370e 100644--- a/litellm/proxy/utils.py+++ b/litellm/proxy/utils.py@@ -349,6 +349,7 @@ class ProxyLogging:if redis_cache is not None:self.internal_usage_cache.dual_cache.redis_cache = redis_cacheself.db_spend_update_writer.redis_update_buffer.redis_cache = redis_cache+ self.db_spend_update_writer.pod_lock_manager.redis_cache = redis_cachedef _init_litellm_callbacks(self, llm_router: Optional[Router] = None):litellm.logging_callback_manager.add_litellm_callback(self.max_parallel_request_limiter) # type: ignore