Skip to content

Commit

Permalink
[Log][Bugfix] Fix default value check for image_url.detail (#9663)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgoin authored Oct 24, 2024
1 parent 722d46e commit e26d37a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm/entrypoints/chat_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ def _parse_chat_message_content_mm_part(
content = MM_PARSER_MAP[part_type](part)

# Special case for 'image_url.detail'
if part_type == "image_url" and part.get("detail") != "auto":
# We only support 'auto', which is the default
if part_type == "image_url" and part.get("detail", "auto") != "auto":
logger.warning("'image_url.detail' is currently not supported "
"and will be ignored.")

Expand Down

0 comments on commit e26d37a

Please sign in to comment.