mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix import
This commit is contained in:
parent
ecec028f38
commit
43fea52d7c
1 changed files with 1 additions and 3 deletions
|
@ -1,5 +1,3 @@
|
||||||
import litellm, openai
|
|
||||||
|
|
||||||
def get_prompt(*args, **kwargs):
|
def get_prompt(*args, **kwargs):
|
||||||
# make this safe checks, it should not throw any exceptions
|
# make this safe checks, it should not throw any exceptions
|
||||||
if len(args) > 1:
|
if len(args) > 1:
|
||||||
|
@ -13,8 +11,8 @@ def get_prompt(*args, **kwargs):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
class RedisCache():
|
class RedisCache():
|
||||||
import redis
|
|
||||||
def __init__(self, host, port, password):
|
def __init__(self, host, port, password):
|
||||||
|
import redis
|
||||||
# if users don't provider one, use the default litellm cache
|
# if users don't provider one, use the default litellm cache
|
||||||
self.redis_client = redis.Redis(host=host, port=port, password=password)
|
self.redis_client = redis.Redis(host=host, port=port, password=password)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue