From 5b08289d8831f363624b1c15648cc10073e27efc Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 3 Feb 2025 18:15:14 -0800 Subject: [PATCH] fix(factory.py): fix bedrock http:// handling --- litellm/litellm_core_utils/prompt_templates/factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/litellm_core_utils/prompt_templates/factory.py b/litellm/litellm_core_utils/prompt_templates/factory.py index fbb2cd16a56..abb508b9820 100644 --- a/litellm/litellm_core_utils/prompt_templates/factory.py +++ b/litellm/litellm_core_utils/prompt_templates/factory.py @@ -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: