forked from phoenix/litellm-mirror
(fix) reading cache params on proxy
This commit is contained in:
parent
72e7178c9b
commit
aeee8fd3da
1 changed files with 8 additions and 6 deletions
|
@ -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,
|
"type": cache_type,
|
||||||
"host": cache_host,
|
"host": cache_host,
|
||||||
"port": cache_port,
|
"port": cache_port,
|
||||||
"password": cache_password,
|
"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}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue