Skip to content

Commit

Permalink
[Log][Bugfix] Fix default value check for image_url.detail (vllm-pr…
Browse files Browse the repository at this point in the history
…oject#9663)

Signed-off-by: NickLucche <nlucches@redhat.com>
  • Loading branch information
mgoin authored and NickLucche committed Oct 31, 2024
1 parent 93eaa15 commit 21cf6b2
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 21cf6b2

Please sign in to comment.