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(batches): overwrite fallback flag in place

Rithvik Mysore Sureshefb5f7417387
diff --git a/litellm/proxy/batches_endpoints/endpoints.py b/litellm/proxy/batches_endpoints/endpoints.py
index a5a03320f7a..f94518b16b6 100644
--- a/litellm/proxy/batches_endpoints/endpoints.py
+++ b/litellm/proxy/batches_endpoints/endpoints.py
@@ -262,9 +262,8 @@ async def create_batch(
detail={"error": "LLM Router not initialized. Ensure models added to proxy."},
)
- response = await llm_router.acreate_batch(
- **{**_create_batch_data, "disable_fallbacks": True},
- )
+ _create_batch_data.update(disable_fallbacks=True) # pyright: ignore[reportCallIssue] # router flag
+ response = await llm_router.acreate_batch(**_create_batch_data)
response.input_file_id = input_file_id
response._hidden_params["unified_file_id"] = unified_file_id
else: