Skip to content

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]

Fix Only allowed to call routes: ['llm_api_routes']. Tried to call route: /batches/bGl0ZWxsbV9wcm/cancel

Sameer Kankute654edbd15c75
diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py
index d9f824be222..9ef451bd70e 100644
--- a/litellm/proxy/_types.py
+++ b/litellm/proxy/_types.py
@@ -293,6 +293,8 @@ class LiteLLMRoutes(enum.Enum):
"/batches",
"/v1/batches/{batch_id}",
"/batches/{batch_id}",
+ "/v1/batches/{batch_id}/cancel",
+ "/batches/{batch_id}/cancel",
# files
"/v1/files",
"/files",