mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 13:04:17 +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:
@@ -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}
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user