diff --git a/vllm/entrypoints/chat_utils.py b/vllm/entrypoints/chat_utils.py index 61a91fe03d2e..3b7685b8c07a 100644 --- a/vllm/entrypoints/chat_utils.py +++ b/vllm/entrypoints/chat_utils.py @@ -500,11 +500,11 @@ def all_mm_data(self) -> Optional[MultiModalDataDict]: raise ValueError(\ "Only one message can have {'type': 'image_embeds'}") mm_inputs["image"] = image_embeds_lst[0] - elif "image" in items_by_modality: + if "image" in items_by_modality: mm_inputs["image"] = items_by_modality["image"] # A list of images - elif "audio" in items_by_modality: + if "audio" in items_by_modality: mm_inputs["audio"] = items_by_modality["audio"] # A list of audios - elif "video" in items_by_modality: + if "video" in items_by_modality: mm_inputs["video"] = items_by_modality["video"] # A list of videos return mm_inputs @@ -533,11 +533,11 @@ async def all_mm_data(self) -> Optional[MultiModalDataDict]: raise ValueError( "Only one message can have {'type': 'image_embeds'}") mm_inputs["image"] = image_embeds_lst[0] - elif "image" in items_by_modality: + if "image" in items_by_modality: mm_inputs["image"] = items_by_modality["image"] # A list of images - elif "audio" in items_by_modality: + if "audio" in items_by_modality: mm_inputs["audio"] = items_by_modality["audio"] # A list of audios - elif "video" in items_by_modality: + if "video" in items_by_modality: mm_inputs["video"] = items_by_modality["video"] # A list of videos return mm_inputs