[bugfix] do not add extra linebreak for score/rerank with chat template (#38617)

Signed-off-by: augusto.yjh <augusto.yjh@antgroup.com>
Signed-off-by: wang.yuqi <noooop@126.com>
Co-authored-by: wang.yuqi <yuqi.wang@daocloud.io>
Co-authored-by: wang.yuqi <noooop@126.com>
Co-authored-by: Cyrus Leung <cyrus.tl.leung@gmail.com>
This commit is contained in:
Augusto Yao
2026-04-01 04:50:07 +00:00
committed by GitHub
co-authored by wang.yuqi wang.yuqi Cyrus Leung
parent eb47454987
commit ef53395e2c
3 changed files with 14 additions and 6 deletions
@@ -150,6 +150,7 @@ def _parse_score_content(
mm_tracker=mm_tracker,
wrap_dicts=False,
interleave_strings=False,
multimodal_content_part_separator="",
)
if parse_res: