Files
ik_llama.cpp/common
Yap Sok AnnandGitHub 997b289d93 jinja: give each for-loop iteration a fresh scope (#2018)
`{% set %}` of a non-loop variable inside a `{% for %}` body leaks
across iterations when the assignment is conditionally skipped. Each
iteration should start with a clean scope, matching standard Jinja2
semantics.

This fixes the issue with GLM-5.2 chat template when:
* turn 1 is a tool call with reasoning
* turn 2 is a tool call without reasoning

In this case, the reasoning content for turn 1 would be wrongly
duplicated to turn 2, resulting in degraded model performance.
2026-06-24 08:58:36 +02:00
..
2024-07-27 07:55:01 +02:00
2026-06-12 06:19:06 +00:00
2026-06-04 15:43:07 +02:00
2025-12-15 08:27:20 +01:00
2026-06-14 21:07:57 -03:00
2023-11-13 14:16:23 +02:00