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(batches): override existing fallback flag
Rithvik Mysore Suresh55726fc09e97
diff --git a/litellm/proxy/batches_endpoints/endpoints.py b/litellm/proxy/batches_endpoints/endpoints.pyindex b7713d388ea..a5a03320f7a 100644--- a/litellm/proxy/batches_endpoints/endpoints.py+++ b/litellm/proxy/batches_endpoints/endpoints.py@@ -263,8 +263,7 @@ async def create_batch()response = await llm_router.acreate_batch(- **_create_batch_data,- disable_fallbacks=True,+ **{**_create_batch_data, "disable_fallbacks": True},)response.input_file_id = input_file_idresponse._hidden_params["unified_file_id"] = unified_file_iddiff --git a/tests/test_litellm/proxy/batches_endpoints/test_endpoints.py b/tests/test_litellm/proxy/batches_endpoints/test_endpoints.pyindex b382313ea1f..f8bc3e10d79 100644--- a/tests/test_litellm/proxy/batches_endpoints/test_endpoints.py+++ b/tests/test_litellm/proxy/batches_endpoints/test_endpoints.py@@ -476,6 +476,7 @@ async def test_create__unified_file_id_single_model_disables_cross_model_fallbac"input_file_id": "litellm_proxy_unified_id","endpoint": "/v1/chat/completions","completion_window": "24h",+ "disable_fallbacks": False,},)with (