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
Respect custom llm provider in header
Sameer Kankutef7380a51de3a
diff --git a/litellm/proxy/batches_endpoints/endpoints.py b/litellm/proxy/batches_endpoints/endpoints.pyindex 98492bcc2d6..03b9ac3deaa 100644--- a/litellm/proxy/batches_endpoints/endpoints.py+++ b/litellm/proxy/batches_endpoints/endpoints.py@@ -31,7 +31,6 @@ from litellm.proxy.openai_files_endpoints.common_utils import (get_original_file_id,prepare_data_with_credentials,)-from litellm.proxy.utils import handle_exception_on_proxy, is_known_modelfrom litellm.types.llms.openai import LiteLLMBatchCreateRequest@@ -112,7 +111,10 @@ async def create_batch( # noqa: PLR0915is_router_model = is_known_model(model=router_model, llm_router=llm_router)custom_llm_provider = (- provider or data.pop("custom_llm_provider", None) or "openai"+ provider+ or data.pop("custom_llm_provider", None)+ or get_custom_llm_provider_from_request_headers(request=request)+ or "openai")_create_batch_data = LiteLLMBatchCreateRequest(**data)input_file_id = _create_batch_data.get("input_file_id", None)