mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
fix(proxy_server.py): fix get secret for environment_variables
This commit is contained in:
parent
b515d4f441
commit
9943c6d607
1 changed files with 3 additions and 1 deletions
|
|
@ -1387,7 +1387,9 @@ class ProxyConfig:
|
|||
environment_variables = config.get("environment_variables", None)
|
||||
if environment_variables:
|
||||
for key, value in environment_variables.items():
|
||||
os.environ[key] = value
|
||||
os.environ[key] = str(
|
||||
litellm.get_secret(secret_name=key, default_value=value)
|
||||
)
|
||||
|
||||
## LITELLM MODULE SETTINGS (e.g. litellm.drop_params=True,..)
|
||||
litellm_settings = config.get("litellm_settings", None)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue