diff --git a/litellm/llms/black_forest_labs/image_edit/transformation.py b/litellm/llms/black_forest_labs/image_edit/transformation.py index 35b62a1e415..78898345bf6 100644 --- a/litellm/llms/black_forest_labs/image_edit/transformation.py +++ b/litellm/llms/black_forest_labs/image_edit/transformation.py @@ -200,6 +200,7 @@ class BlackForestLabsImageEditConfig(BaseImageEditConfig): if image.startswith(("http://", "https://")): # Download image from URL response = httpx.get(image, timeout=60.0) + response.raise_for_status() return response.content else: # Assume it's a file path