Unverified Commit e26d37a1 authored by Michael Goin's avatar Michael Goin Committed by GitHub
Browse files

[Log][Bugfix] Fix default value check for `image_url.detail` (#9663)

parent 722d46ed
......@@ -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.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment