From 84385ce80edbfb758898aa751da75f29fec0dd19 Mon Sep 17 00:00:00 2001 From: ishaan-jaff Date: Mon, 8 Jan 2024 17:54:51 +0530 Subject: [PATCH] (fix) run prisma setup - on __init_ --- litellm/proxy/utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.py index d82d59af3f..31938ed303 100644 --- a/litellm/proxy/utils.py +++ b/litellm/proxy/utils.py @@ -268,9 +268,10 @@ class PrismaClient: try: if not os.path.exists("prisma"): subprocess.run(["prisma", "generate"]) - subprocess.run( - ["prisma", "db", "push", "--accept-data-loss"] - ) # this looks like a weird edge case when prisma just wont start on render. we need to have the --accept-data-loss + + subprocess.run( + ["prisma", "db", "push", "--accept-data-loss"] + ) # this looks like a weird edge case when prisma just wont start on render. we need to have the --accept-data-loss finally: os.chdir(original_dir) # Now you can import the Prisma Client