Update litellm/llms/black_forest_labs/image_edit/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 18:26:47 -03:00 committed by GitHub
parent 00cf9550af
commit 8eb7ca3726
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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