From 726fe3e72e181262ffb65f621cdd855c63393fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E9=9C=96?= <123342936+xvlincaigou@users.noreply.github.com> Date: Thu, 18 Dec 2025 04:38:18 +0800 Subject: [PATCH] fix: prevent points regex from matching checkpoints/endpoints (#15120) --- python/sglang/srt/parser/conversation.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/sglang/srt/parser/conversation.py b/python/sglang/srt/parser/conversation.py index 131343c85..17fd93053 100644 --- a/python/sglang/srt/parser/conversation.py +++ b/python/sglang/srt/parser/conversation.py @@ -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"