From 1bb4f3ad6dec49fd9d0a6ba0f267ef1885354286 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Sat, 30 Mar 2024 20:10:56 -0700 Subject: [PATCH] fix(utils.py): set redis_usage_cache to none by default --- litellm/proxy/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index 7d3e30f865c..f75a3ff562f 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -48,7 +48,9 @@ class ProxyLogging: """ def __init__( - self, user_api_key_cache: DualCache, redis_usage_cache: Optional[RedisCache] + self, + user_api_key_cache: DualCache, + redis_usage_cache: Optional[RedisCache] = None, ): ## INITIALIZE LITELLM CALLBACKS ## self.call_details: dict = {}