From 428eb8e07943465ec429e192f48247ea891bf28d Mon Sep 17 00:00:00 2001 From: mateo Date: Fri, 16 Oct 2026 21:54:29 +0000 Subject: [PATCH] style(prompt_templates): format MIME normalization Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- litellm/litellm_core_utils/prompt_templates/common_utils.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/litellm/litellm_core_utils/prompt_templates/common_utils.py b/litellm/litellm_core_utils/prompt_templates/common_utils.py index 8e53fa40572..0144a1ae67e 100644 --- a/litellm/litellm_core_utils/prompt_templates/common_utils.py +++ b/litellm/litellm_core_utils/prompt_templates/common_utils.py @@ -1646,9 +1646,7 @@ def infer_content_type_from_url_and_content( """ from litellm.litellm_core_utils.token_counter import get_image_type - media_type: Final = ( - current_content_type.split(";", 1)[0].strip().lower() if current_content_type else None - ) + media_type: Final = current_content_type.split(";", 1)[0].strip().lower() if current_content_type else None # If we have a valid content type that's not generic, use it if media_type and media_type not in [