From d4344fb85e85aa1bb45c75a2c2177994d5edd471 Mon Sep 17 00:00:00 2001 From: Anya Ishmukh Date: Thu, 16 Jul 2026 10:35:57 +1000 Subject: [PATCH] Update endpoints.py --- litellm/proxy/batches_endpoints/endpoints.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/proxy/batches_endpoints/endpoints.py b/litellm/proxy/batches_endpoints/endpoints.py index 41852d062cc..847def0a7f0 100644 --- a/litellm/proxy/batches_endpoints/endpoints.py +++ b/litellm/proxy/batches_endpoints/endpoints.py @@ -172,9 +172,9 @@ async def create_batch( ) # Create batch using model credentials - resolved_model = _create_batch_data.pop("model", None) or model_from_file_id + _create_batch_data.pop("model", None) # avoid duplicate kwarg if data has model response = await litellm.acreate_batch( - model=resolved_model, + model=model_from_file_id, custom_llm_provider=credentials["custom_llm_provider"], **_create_batch_data, # type: ignore )