mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix(proxy_server.py): Fix https://github.com/BerriAI/litellm/issues/9576
This commit is contained in:
parent
5203382702
commit
b155f4f4a6
1 changed files with 2 additions and 1 deletions
|
@ -511,7 +511,7 @@ async def proxy_startup_event(app: FastAPI):
|
|||
|
||||
### LOAD MASTER KEY ###
|
||||
# check if master key set in environment - load from there
|
||||
master_key = get_secret("LITELLM_MASTER_KEY", None) # type: ignore
|
||||
# master_key = get_secret("LITELLM_MASTER_KEY", None) # type: ignore
|
||||
# check if DATABASE_URL in environment - load from there
|
||||
if prisma_client is None:
|
||||
_db_url: Optional[str] = get_secret("DATABASE_URL", None) # type: ignore
|
||||
|
@ -1974,6 +1974,7 @@ class ProxyConfig:
|
|||
|
||||
if master_key and master_key.startswith("os.environ/"):
|
||||
master_key = get_secret(master_key) # type: ignore
|
||||
|
||||
if not isinstance(master_key, str):
|
||||
raise Exception(
|
||||
"Master key must be a string. Current type - {}".format(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue