mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 18:24:20 +00:00
(fix) proxy + cache - os.environ/ vars
This commit is contained in:
parent
174248fc71
commit
c222c0bfb8
1 changed files with 1 additions and 1 deletions
|
@ -675,7 +675,7 @@ class ProxyConfig:
|
|||
|
||||
# users can pass os.environ/ variables on the proxy - we should read them from the env
|
||||
for key, value in cache_params.items():
|
||||
if value.startswith("os.environ/"):
|
||||
if type(value) is str and value.startswith("os.environ/"):
|
||||
cache_params[key] = litellm.get_secret(value)
|
||||
|
||||
## to pass a complete url, or set ssl=True, etc. just set it as `os.environ[REDIS_URL] = <your-redis-url>`, _redis.py checks for REDIS specific environment variables
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue