[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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user