Update litellm/llms/black_forest_labs/image_generation/transformation.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Cesar Garcia 2026-03-04 19:20:19 -03:00 committed by GitHub
parent d9f37011a2
commit 835e4c4a75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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