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 model getting twice

Sameer Kankute8ffffb4d15d3
diff --git a/litellm/proxy/batches_endpoints/endpoints.py b/litellm/proxy/batches_endpoints/endpoints.py
index 03b9ac3deaa..086105042e8 100644
--- a/litellm/proxy/batches_endpoints/endpoints.py
+++ b/litellm/proxy/batches_endpoints/endpoints.py
@@ -573,6 +573,7 @@ async def list_batches(
if target_model_names is None:
raise ValueError("target_model_names is required for this routing scenario")
model = target_model_names.split(",")[0]
+ data.pop("model", None)
response = await llm_router.alist_batches(
model=model,
after=after,