forked from phoenix/litellm-mirror
fix(_redis.py): check if string before checking os.environ
This commit is contained in:
parent
b92f1af301
commit
91ce50338a
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ def get_redis_url_from_environment():
|
|||
def get_redis_client(**env_overrides):
|
||||
### check if "os.environ/<key-name>" passed in
|
||||
for k, v in env_overrides.items():
|
||||
if v.startswith("os.environ/"):
|
||||
if isinstance(v, str) and v.startswith("os.environ/"):
|
||||
v = v.replace("os.environ/", "")
|
||||
value = litellm.get_secret(v)
|
||||
env_overrides[k] = value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue