[Frontend] Migrate input-validation errors to VLLMValidationError (harmony/mistral/chat_utils/params) (#55735)

Signed-off-by: shaolila <shaolila@buaa.edu.cn>
Co-authored-by: shaolila <shaolila@buaa.edu.cn>
This commit is contained in:
Adababy
2026-09-08 06:45:40 +00:00
committed by GitHub
co-authored by shaolila
parent 755541443f
commit 5133e1d285
7 changed files with 62 additions and 8 deletions
+4 -1
View File
@@ -1454,7 +1454,10 @@ def validate_chat_template(chat_template: Path | str | None):
)
else:
raise TypeError(f"{type(chat_template)} is not a valid chat template type")
raise VLLMValidationError(
f"{type(chat_template)} is not a valid chat template type",
parameter="chat_template",
)
def _load_chat_template(