From a32a6c43c70368f2f4c7be2637c71923531566eb Mon Sep 17 00:00:00 2001 From: "anil.kumar.peesa" Date: Wed, 8 Oct 2025 16:43:14 +0530 Subject: [PATCH] fix: Image Generation and Edits - fixed minor code miss --- litellm/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/utils.py b/litellm/utils.py index e2aba9fa8bb..2d482a112f5 100644 --- a/litellm/utils.py +++ b/litellm/utils.py @@ -2527,7 +2527,7 @@ def _map_openai_size_to_vertex_ai_aspect_ratio(size: Optional[str]) -> str: ) # Default to square if size not recognized -def get_optional_params_image_gen( +def get_optional_params_image_gen( # noqa: PLR0915 model: Optional[str] = None, n: Optional[int] = None, quality: Optional[str] = None, @@ -2590,6 +2590,7 @@ def get_optional_params_image_gen( if ( litellm.drop_params is True or drop_params is True ) and k not in supported_params: # drop the unsupported non-default values + invalid_params.append(k) non_default_params.pop(k, None) elif k not in supported_params: raise UnsupportedParamsError(