mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
Fix: change delete() to delete_many() for prompt deletion to handle non-unique prompt_id (#18966)
Co-authored-by: Berke Yalcin <berke.yalcin@beko.com>
This commit is contained in:
parent
9adc19deab
commit
c2e01735e4
1 changed files with 1 additions and 1 deletions
|
|
@ -851,7 +851,7 @@ async def delete_prompt(
|
|||
)
|
||||
|
||||
# Delete the prompt from the database
|
||||
await prisma_client.db.litellm_prompttable.delete(
|
||||
await prisma_client.db.litellm_prompttable.delete_many(
|
||||
where={"prompt_id": prompt_id}
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue