Signed-off-by: Reagan <reaganjlee@gmail.com>
This commit is contained in:
Reagan 2025-12-18 18:21:38 -08:00
parent 76e21b4a10
commit a81128725c

View File

@ -1908,8 +1908,7 @@ def get_samples(args, tokenizer: TokenizerLike) -> list[SampleRequest]:
try:
# Enforce endpoint compatibility for multimodal datasets.
backend = getattr(args, "backend", "openai-chat")
if args.dataset_name == "random-mm" and backend not in ["openai-chat"]:
if args.dataset_name == "random-mm" and args.backend not in ["openai-chat"]:
raise ValueError(
"Multi-modal content (images) is only supported on "
"'openai-chat' backend."