From 6939cc253112bc179bbecf4f8348f6cc5ccdcd68 Mon Sep 17 00:00:00 2001 From: antondelgado123 <153525988+antondelgado123@users.noreply.github.com> Date: Mon, 26 Jan 2026 11:36:21 +0000 Subject: [PATCH] Update transformation.py --- .../litellm_responses_transformation/transformation.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/litellm/completion_extras/litellm_responses_transformation/transformation.py b/litellm/completion_extras/litellm_responses_transformation/transformation.py index c98799d2542..859fc55c8fa 100644 --- a/litellm/completion_extras/litellm_responses_transformation/transformation.py +++ b/litellm/completion_extras/litellm_responses_transformation/transformation.py @@ -301,6 +301,11 @@ class LiteLLMResponsesTransformationHandler(CompletionTransformationBridge): from litellm.types.utils import CallTypes setattr(litellm_logging_obj, "call_type", CallTypes.responses.value) + + # Extract additional_drop_params from litellm_params or optional_params + additional_drop_params = litellm_params.get( + "additional_drop_params" + ) or optional_params.get("additional_drop_params") request_data = { "model": api_model, @@ -308,6 +313,7 @@ class LiteLLMResponsesTransformationHandler(CompletionTransformationBridge): "litellm_logging_obj": litellm_logging_obj, **litellm_params, "client": client, + "additional_drop_params": additional_drop_params, } verbose_logger.debug(