mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
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:
parent
00cf9550af
commit
8eb7ca3726
1 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue