From 835e4c4a75ad8a904e0bcb69aaa3a6421cb6fec4 Mon Sep 17 00:00:00 2001 From: Cesar Garcia <128240629+Chesars@users.noreply.github.com> Date: Wed, 4 Mar 2026 19:20:19 -0300 Subject: [PATCH] Update litellm/llms/black_forest_labs/image_generation/transformation.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- .../llms/black_forest_labs/image_generation/transformation.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/llms/black_forest_labs/image_generation/transformation.py b/litellm/llms/black_forest_labs/image_generation/transformation.py index 88ad9a57c18..76267491e3e 100644 --- a/litellm/llms/black_forest_labs/image_generation/transformation.py +++ b/litellm/llms/black_forest_labs/image_generation/transformation.py @@ -127,7 +127,9 @@ class BlackForestLabsImageGenerationConfig(BaseImageGenerationConfig): optional_params["width"] = width optional_params["height"] = height except ValueError: - pass # Ignore invalid size format + raise ValueError( + f"Invalid size format: '{size}'. Expected format 'WIDTHxHEIGHT' (e.g., '1024x1024')." + ) def validate_environment( self,