(fix) reading cache params on proxy

This commit is contained in:
ishaan-jaff 2024-01-05 13:36:48 +05:30
parent 72e7178c9b
commit aeee8fd3da

View file

@ -653,12 +653,14 @@ class ProxyConfig:
cache_port = litellm.get_secret("REDIS_PORT", None) cache_port = litellm.get_secret("REDIS_PORT", None)
cache_password = litellm.get_secret("REDIS_PASSWORD", None) cache_password = litellm.get_secret("REDIS_PASSWORD", None)
cache_params = { cache_params.update(
"type": cache_type, {
"host": cache_host, "type": cache_type,
"port": cache_port, "host": cache_host,
"password": cache_password, "port": cache_port,
} "password": cache_password,
}
)
# Assuming cache_type, cache_host, cache_port, and cache_password are strings # Assuming cache_type, cache_host, cache_port, and cache_password are strings
print( # noqa print( # noqa
f"{blue_color_code}Cache Type:{reset_color_code} {cache_type}" f"{blue_color_code}Cache Type:{reset_color_code} {cache_type}"