From 43fea52d7c0014dd4bc1dee3773065c4785d526c Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Mon, 28 Aug 2023 14:21:25 -0700 Subject: [PATCH] fix import --- litellm/caching.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litellm/caching.py b/litellm/caching.py index 4777b2f18d..3cab7d460e 100644 --- a/litellm/caching.py +++ b/litellm/caching.py @@ -1,5 +1,3 @@ -import litellm, openai - def get_prompt(*args, **kwargs): # make this safe checks, it should not throw any exceptions if len(args) > 1: @@ -13,8 +11,8 @@ def get_prompt(*args, **kwargs): return None class RedisCache(): - import redis def __init__(self, host, port, password): + import redis # if users don't provider one, use the default litellm cache self.redis_client = redis.Redis(host=host, port=port, password=password)