litellm - 💡(How to fix) Fix [Bug]: v1.81.14-nightly - litellm-proxy-extras 0.4.46 ships a schema.prisma with a duplicate LiteLLM_DeletedTeamTable model, breaking prisma generate [1 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#22983Fetched 2026-04-08 00:39:03
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
7
Author
Participants
Timeline (top)
subscribed ×2

Error Message

Error: The model "LiteLLM_DeletedTeamTable" cannot be defined because a Validation Error Count: 1

Root Cause

Error: The model "LiteLLM_DeletedTeamTable" cannot be defined because a model with that name already exists. Validation Error Count: 1 Prisma CLI Version : 5.4.2

RAW_BUFFERClick to expand / collapse

The main-v1.81.14-nightly image ships litellm-proxy-extras==0.4.46 which contains a schema.prisma with LiteLLM_DeletedTeamTable defined twice. This causes prisma generate to fail at build time:

Error: The model "LiteLLM_DeletedTeamTable" cannot be defined because a
model with that name already exists.
Validation Error Count: 1
Prisma CLI Version : 5.4.2

Reproducer:

$ docker run --rm --entrypoint sh ghcr.io/berriai/litellm:main-v1.81.14-nightly \
  -c "grep LiteLLM_DeletedTeamTable /usr/lib/python3.13/site-packages/litellm_proxy_extras/schema.prisma"
model LiteLLM_DeletedTeamTable {
model LiteLLM_DeletedTeamTable {

The fix was already applied to the main schema.prisma in #22037 but was not carried through to the litellm-proxy-extras package before 0.4.46 was released. The duplicate is absent in litellm-proxy-extras==0.4.50.

extent analysis

Fix Plan

To resolve the issue, update the litellm-proxy-extras package to version 0.4.50 or later, which does not contain the duplicate LiteLLM_DeletedTeamTable definition.

Steps

  • Update the requirements.txt file to specify the corrected version:

litellm-proxy-extras==0.4.50

* Run `pip install` to update the package:
  ```bash
pip install -r requirements.txt
  • Verify that the duplicate definition is removed:

docker run --rm --entrypoint sh ghcr.io/berriai/litellm:main-v1.81.14-nightly
-c "grep LiteLLM_DeletedTeamTable /usr/lib/python3.13/site-packages/litellm_proxy_extras/schema.prisma"

  This should return only one instance of the `LiteLLM_DeletedTeamTable` model.

### Verification
After updating the package, run `prisma generate` to ensure that it no longer fails due to the duplicate definition.

### Extra Tips
* Always verify package updates in a non-production environment before deploying to production.
* Consider pinning package versions to prevent unexpected updates.
* Use a package manager like `pip-compile` to manage dependencies and ensure consistent versions across environments.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - 💡(How to fix) Fix [Bug]: v1.81.14-nightly - litellm-proxy-extras 0.4.46 ships a schema.prisma with a duplicate LiteLLM_DeletedTeamTable model, breaking prisma generate [1 participants]