diff --git a/litellm/llms/black_forest_labs/image_edit/transformation.py b/litellm/llms/black_forest_labs/image_edit/transformation.py index 95e3c946cc8..5732b8786db 100644 --- a/litellm/llms/black_forest_labs/image_edit/transformation.py +++ b/litellm/llms/black_forest_labs/image_edit/transformation.py @@ -204,7 +204,10 @@ class BlackForestLabsImageEditConfig(BaseImageEditConfig): image.seek(pos) return data else: - return image + raise ValueError( + f"Unsupported image type: {type(image)}. " + "Expected bytes, str (URL or file path), or file-like object." + ) def transform_image_edit_request( self,