The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Fix: change delete() to delete_many() for prompt deletion to handle non-unique prompt_id (#18966)
berkeyalciinc2e01735e49d
diff --git a/litellm/proxy/prompts/prompt_endpoints.py b/litellm/proxy/prompts/prompt_endpoints.pyindex ac39e5f4b2c..0c77b6f8510 100644--- a/litellm/proxy/prompts/prompt_endpoints.py+++ b/litellm/proxy/prompts/prompt_endpoints.py@@ -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})