From 1f2f24e0180161b14c0f7baca970d6da06903db1 Mon Sep 17 00:00:00 2001 From: Anya Ishmukh Date: Wed, 15 Jul 2026 23:55:42 +1000 Subject: [PATCH] Update endpoints.py resolved_model gets the real model ID from the router config via prepare_data_with_credentials --- litellm/proxy/batches_endpoints/endpoints.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/batches_endpoints/endpoints.py b/litellm/proxy/batches_endpoints/endpoints.py index 36172187340..41852d062cc 100644 --- a/litellm/proxy/batches_endpoints/endpoints.py +++ b/litellm/proxy/batches_endpoints/endpoints.py @@ -172,8 +172,9 @@ async def create_batch( ) # Create batch using model credentials + resolved_model = _create_batch_data.pop("model", None) or model_from_file_id response = await litellm.acreate_batch( - model=model_from_file_id, + model=resolved_model, custom_llm_provider=credentials["custom_llm_provider"], **_create_batch_data, # type: ignore )