mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
fix(proxy_cli.py): only run prisma db push if prisma in environment
This commit is contained in:
parent
ae74c52a33
commit
61cbac6b4f
3 changed files with 67 additions and 50 deletions
|
@ -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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue