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
@ -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…
Reference in New Issue
Block a user