From 8eb7ca3726d075b974f7c923fc372b24d7b18b90 Mon Sep 17 00:00:00 2001 From: Cesar Garcia <128240629+Chesars@users.noreply.github.com> Date: Wed, 4 Mar 2026 18:26:47 -0300 Subject: [PATCH] Update litellm/llms/black_forest_labs/image_edit/transformation.py Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- litellm/llms/black_forest_labs/image_edit/transformation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,