mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix(proxy_server.py): fix get secret for environment_variables
This commit is contained in:
parent
38cd7abe6f
commit
1a172b7636
1 changed files with 3 additions and 1 deletions
|
@ -1387,7 +1387,9 @@ class ProxyConfig:
|
||||||
environment_variables = config.get("environment_variables", None)
|
environment_variables = config.get("environment_variables", None)
|
||||||
if environment_variables:
|
if environment_variables:
|
||||||
for key, value in environment_variables.items():
|
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 MODULE SETTINGS (e.g. litellm.drop_params=True,..)
|
||||||
litellm_settings = config.get("litellm_settings", None)
|
litellm_settings = config.get("litellm_settings", None)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue