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

This commit is contained in:
Michael Goin 2024-10-24 13:44:38 -04:00 committed by GitHub
parent 722d46edb9
commit e26d37a185
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.")