From 875e173e5f0f76268b4d177ac89f2069a2901de5 Mon Sep 17 00:00:00 2001 From: Michael Goin Date: Thu, 24 Oct 2024 13:44:38 -0400 Subject: [PATCH] [Log][Bugfix] Fix default value check for `image_url.detail` (#9663) Signed-off-by: Tyler Michael Smith --- vllm/entrypoints/chat_utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vllm/entrypoints/chat_utils.py b/vllm/entrypoints/chat_utils.py index fef6a91414db6..ce36f20760f4c 100644 --- a/vllm/entrypoints/chat_utils.py +++ b/vllm/entrypoints/chat_utils.py @@ -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.")