From 694a6e3b1b257f8e47f1d8f9dc6b84e07827a3b2 Mon Sep 17 00:00:00 2001 From: Sameer Kankute Date: Mon, 10 Nov 2025 22:31:32 +0530 Subject: [PATCH] fix lint errors --- .../transformation.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/litellm/responses/litellm_completion_transformation/transformation.py b/litellm/responses/litellm_completion_transformation/transformation.py index 5ff466b27e5..04a971ccfc0 100644 --- a/litellm/responses/litellm_completion_transformation/transformation.py +++ b/litellm/responses/litellm_completion_transformation/transformation.py @@ -99,22 +99,22 @@ class LiteLLMCompletionResponsesConfig: @staticmethod def filter_unsupported_params( - params: dict, + params: Union[ResponsesAPIOptionalRequestParams, Dict[str, Any]], model: str, custom_llm_provider: Optional[str] = None, - ) -> dict: + ) -> ResponsesAPIOptionalRequestParams: """Return params with only those supported by the provider.""" supported_params = get_supported_openai_params( model=model, custom_llm_provider=custom_llm_provider ) if supported_params: # Only add params if they're in supported_params - final_params = {} + final_params: Dict[str, Any] = {} for p in params: if p in supported_params: final_params[p] = params[p] - return final_params - return params + return cast(ResponsesAPIOptionalRequestParams, final_params) + return cast(ResponsesAPIOptionalRequestParams, params) @staticmethod def transform_responses_api_request_to_chat_completion_request(