mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 03:04:13 +00:00
fix(factory.py): fix bedrock http:// handling
This commit is contained in:
parent
7ddb034b31
commit
5b08289d88
1 changed files with 1 additions and 1 deletions
|
@ -2307,7 +2307,7 @@ class BedrockImageProcessor:
|
|||
"""Synchronous image processing."""
|
||||
if "base64" in image_url:
|
||||
img_bytes, mime_type, image_format = cls._parse_base64_image(image_url)
|
||||
elif "https:/" in image_url:
|
||||
elif "http://" in image_url or "https://" in image_url:
|
||||
img_bytes, mime_type = BedrockImageProcessor.get_image_details(image_url)
|
||||
image_format = mime_type.split("/")[1]
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue