[Bugfix] use served_model_name for multimodal error message (#41003)

Signed-off-by: Moritz Sanft <58110325+msanft@users.noreply.github.com>
This commit is contained in:
Moritz Sanft
2026-04-27 08:22:35 -07:00
committed by GitHub
parent e6f710a87f
commit 2c06cf3486
2 changed files with 18 additions and 1 deletions
+2 -1
View File
@@ -207,7 +207,8 @@ class MultiModalRegistry:
Create a multi-modal processor for a specific model and tokenizer.
"""
if not model_config.is_multimodal_model:
raise ValueError(f"{model_config.model} is not a multimodal model")
model_name = model_config.served_model_name or model_config.model
raise ValueError(f"{model_name} is not a multimodal model")
model_cls = self._get_model_cls(model_config)
factories = model_cls._processor_factory