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:
berkeyalciin
2026-01-14 01:12:43 +03:00
committed by GitHub
parent 9adc19deab
commit c2e01735e4
+1 -1
View File
@@ -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}
)