mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
Update transformation.py
This commit is contained in:
parent
25055a0099
commit
6939cc2531
1 changed files with 6 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue