mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
fix(utils.py): set redis_usage_cache to none by default
This commit is contained in:
parent
f58fefd589
commit
d9ff13b624
2 changed files with 4 additions and 2 deletions
|
@ -48,7 +48,9 @@ class ProxyLogging:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(
|
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 ##
|
## INITIALIZE LITELLM CALLBACKS ##
|
||||||
self.call_details: dict = {}
|
self.call_details: dict = {}
|
||||||
|
|
|
@ -61,7 +61,7 @@ from litellm.proxy.utils import DBClient
|
||||||
from starlette.datastructures import URL
|
from starlette.datastructures import URL
|
||||||
from litellm.caching import DualCache
|
from litellm.caching import DualCache
|
||||||
|
|
||||||
proxy_logging_obj = ProxyLogging(user_api_key_cache=DualCache())
|
proxy_logging_obj = ProxyLogging(user_api_key_cache=DualCache(), redis_usage_cache=None)
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue