diff --git a/litellm/proxy/batches_endpoints/endpoints.py b/litellm/proxy/batches_endpoints/endpoints.py index be889a22cae..9705a9f0228 100644 --- a/litellm/proxy/batches_endpoints/endpoints.py +++ b/litellm/proxy/batches_endpoints/endpoints.py @@ -231,7 +231,9 @@ async def create_batch( ) # Create batch using model credentials + _create_batch_data.pop("model", None) # avoid duplicate kwarg if data has model response = await litellm.acreate_batch( + model=model_from_file_id, custom_llm_provider=credentials["custom_llm_provider"], **_create_batch_data, )