| {{- bos_token }}{% for message in messages %}{{ '<|im_start|>' + message['role'] | trim + ' | |
| ' + message['content'].split('</think>')[-1] | trim + '<|im_end|>' }}{% if not loop.last %}{{ ' | |
| ' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ ' | |
| ' + '<|im_start|>assistant | |
| <think> | |
| ' }}{% endif %} |