The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Update litellm/llms/black_forest_labs/image_generation/transformation.py
Cesar Garcia835e4c4a75ad
diff --git a/litellm/llms/black_forest_labs/image_generation/transformation.py b/litellm/llms/black_forest_labs/image_generation/transformation.pyindex 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"] = widthoptional_params["height"] = heightexcept ValueError:- pass # Ignore invalid size format+ raise ValueError(+ f"Invalid size format: '{size}'. Expected format 'WIDTHxHEIGHT' (e.g., '1024x1024')."+ )def validate_environment(self,