mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 11:43:54 +00:00
(fix) caching - don't require cache password
This commit is contained in:
parent
4da75c8bfa
commit
4c38f5a450
1 changed files with 2 additions and 0 deletions
|
@ -1703,6 +1703,7 @@ class ProxyConfig:
|
|||
) and len(cache_params.keys()) == 0:
|
||||
cache_host = litellm.get_secret("REDIS_HOST", None)
|
||||
cache_port = litellm.get_secret("REDIS_PORT", None)
|
||||
cache_password = None
|
||||
cache_params.update(
|
||||
{
|
||||
"type": cache_type,
|
||||
|
@ -1710,6 +1711,7 @@ class ProxyConfig:
|
|||
"port": cache_port,
|
||||
}
|
||||
)
|
||||
|
||||
if litellm.get_secret("REDIS_PASSWORD", None) is not None:
|
||||
cache_password = litellm.get_secret("REDIS_PASSWORD", None)
|
||||
cache_params.update(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue