fix: prevent points regex from matching checkpoints/endpoints (#15120)

This commit is contained in:
许霖
2025-12-18 04:38:18 +08:00
committed by GitHub
parent 5d087891c9
commit 726fe3e72e

View File

@@ -1039,7 +1039,8 @@ MODEL_TYPE_TO_TEMPLATE = {
@register_conv_template_matching_function
def match_points_v15_chat(model_path: str):
if re.search(r"points", model_path, re.IGNORECASE):
# reference: https://github.com/sgl-project/sglang/issues/12791
if re.search(r"\bpoints\b", model_path, re.IGNORECASE):
return "points-v15-chat"