fix(proxy_cli.py): only run prisma db push if prisma in environment

This commit is contained in:
Krrish Dholakia 2024-01-13 19:44:12 +05:30
parent 8a7a745549
commit 3d7c169a58
3 changed files with 67 additions and 50 deletions

View file

@ -1210,11 +1210,6 @@ async def startup_event():
# check if master key set in environment - load from there
master_key = litellm.get_secret("LITELLM_MASTER_KEY", None)
### CONNECT TO DB ###
# check if DATABASE_URL in environment - load from there
if prisma_client is None:
prisma_setup(database_url=os.getenv("DATABASE_URL"))
### LOAD CONFIG ###
worker_config = litellm.get_secret("WORKER_CONFIG")
verbose_proxy_logger.debug(f"worker_config: {worker_config}")