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 )