Update transformation.py

This commit is contained in:
antondelgado123 2026-01-26 11:36:21 +00:00 committed by GitHub
parent 25055a0099
commit 6939cc2531
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(