[Model] Add HyperCLOVAX-SEED-Think-32B vision-language model support (#31471)

Signed-off-by: effortprogrammer <yhjhoward7@gmail.com>
Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
Hojin Yang
2026-03-10 10:59:19 +08:00
committed by GitHub
co-authored by Cyrus Leung
parent 4e95ec111c
commit 0836be3b03
8 changed files with 760 additions and 10 deletions
+5 -5
View File
@@ -1428,6 +1428,8 @@ def _parse_chat_message_content_part(
with multimodal placeholders.
"""
if isinstance(part, str): # Handle plain text parts
if wrap_dicts:
return {"type": "text", "text": part}
return part
# Handle structured dictionary parts
part_type, content = _parse_chat_message_content_mm_part(part)
@@ -1487,11 +1489,9 @@ def _parse_chat_message_content_part(
else:
raise NotImplementedError(f"Unknown part type: {part_type}")
return (
{"type": modality}
if wrap_dicts
else (MODALITY_PLACEHOLDERS_MAP[modality] if interleave_strings else None)
)
if wrap_dicts:
return {"type": modality}
return MODALITY_PLACEHOLDERS_MAP[modality] if interleave_strings else None
# No need to validate using Pydantic again