mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-04 07:27:51 +00:00
style(prompt_templates): format MIME normalization
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
3b28e7008e
commit
428eb8e079
1 changed files with 1 additions and 3 deletions
|
|
@ -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 [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue