Skip to content

Commit 1a33aac

Browse files
[Misc] Raise error for missing video metadata in MultiModalDataParser (vllm-project#27664)
Signed-off-by: Isotr0py <[email protected]> Signed-off-by: Isotr0py <[email protected]> Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 7ba6aa8 commit 1a33aac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vllm/multimodal/parse.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,11 @@ def _parse_video_data(
506506
for data_item in data_items:
507507
video, metadata = self._get_video_with_metadata(data_item)
508508
if self.video_needs_metadata:
509+
if metadata is None:
510+
raise ValueError(
511+
"Video metadata is required but not found in mm input. "
512+
"Please check your video input in `multi_modal_data`"
513+
)
509514
new_videos.append((video, metadata))
510515
metadata_lst.append(metadata)
511516
else:

0 commit comments

Comments
 (0)