The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
skip prisma gen step
Ishaan Jaffab7758840b5a
diff --git a/litellm/proxy/utils.py b/litellm/proxy/utils.pyindex 4df037fc349..4237a011b4f 100644--- a/litellm/proxy/utils.py+++ b/litellm/proxy/utils.py@@ -844,17 +844,17 @@ class PrismaClient:dname = os.path.dirname(abspath)os.chdir(dname)- try:- 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- except Exception as e:- raise Exception(- f"Unable to run prisma commands. Run `pip install prisma` Got Exception: {(str(e))}"- )- finally:- os.chdir(original_dir)+ # try:+ # 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+ # except Exception as e:+ # raise Exception(+ # f"Unable to run prisma commands. Run `pip install prisma` Got Exception: {(str(e))}"+ # )+ # finally:+ # os.chdir(original_dir)# Now you can import the Prisma Clientfrom prisma import Prisma # type: ignoreverbose_proxy_logger.debug("Connecting Prisma Client to DB..")