From b155f4f4a6c1c2579cb4f38d3d84e311dabee487 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Thu, 27 Mar 2025 23:25:46 -0700 Subject: [PATCH] fix(proxy_server.py): Fix https://github.com/BerriAI/litellm/issues/9576 --- litellm/proxy/proxy_server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index 87f34a8984..832ba00b3e 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -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(