Light-O1-Preview / chat_template.jinja
LIAO-JIAYI's picture
Light-O1-Preview
c10a2ec verified
Raw History Blame Contribute Delete
303 Bytes
{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{ '<|im_start|>' + message['role'] + '
' + message['content'] | trim + '<|im_end|>
' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
<think>
' }}{% endif %}