forked from phoenix/litellm-mirror
(fix) caching - don't require cache password
This commit is contained in:
parent
dff4d6363a
commit
8f750b71eb
1 changed files with 2 additions and 0 deletions
|
@ -1703,6 +1703,7 @@ class ProxyConfig:
|
||||||
) and len(cache_params.keys()) == 0:
|
) and len(cache_params.keys()) == 0:
|
||||||
cache_host = litellm.get_secret("REDIS_HOST", None)
|
cache_host = litellm.get_secret("REDIS_HOST", None)
|
||||||
cache_port = litellm.get_secret("REDIS_PORT", None)
|
cache_port = litellm.get_secret("REDIS_PORT", None)
|
||||||
|
cache_password = None
|
||||||
cache_params.update(
|
cache_params.update(
|
||||||
{
|
{
|
||||||
"type": cache_type,
|
"type": cache_type,
|
||||||
|
@ -1710,6 +1711,7 @@ class ProxyConfig:
|
||||||
"port": cache_port,
|
"port": cache_port,
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
if litellm.get_secret("REDIS_PASSWORD", None) is not None:
|
if litellm.get_secret("REDIS_PASSWORD", None) is not None:
|
||||||
cache_password = litellm.get_secret("REDIS_PASSWORD", None)
|
cache_password = litellm.get_secret("REDIS_PASSWORD", None)
|
||||||
cache_params.update(
|
cache_params.update(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue