mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +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
|
import os
|
||||||
print("LiteLLM: DATABASE_URL Set in config, trying to 'pip install prisma'")
|
print("LiteLLM: DATABASE_URL Set in config, trying to 'pip install prisma'")
|
||||||
os.environ["DATABASE_URL"] = database_url
|
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
|
# Now you can import the Prisma Client
|
||||||
from prisma import Client
|
from prisma import Client
|
||||||
prisma_client = Client()
|
prisma_client = Client()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue