mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 02:34:29 +00:00
(fix) prisma
This commit is contained in:
parent
90b8fd8ac5
commit
99b2a1bc8a
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ def prisma_setup(database_url: Optional[str]):
|
|||
import os
|
||||
print("LiteLLM: DATABASE_URL Set in config, trying to 'pip install prisma'")
|
||||
os.environ["DATABASE_URL"] = database_url
|
||||
subprocess.run(['prisma', 'db', 'push'])
|
||||
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
|
||||
# Now you can import the Prisma Client
|
||||
from prisma import Client
|
||||
prisma_client = Client()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue