Qwen3.8-27B-OBLITERATED / chat_template.jinja
pliny-the-prompter's picture
V3: fixed chat_template.jinja
489c6c8 verified
Raw
History Blame
506 Bytes
{%- for message in messages %}
{%- if message.role == "system" %}
<|im_start|>system
{{ message.content }}<|im_end|>
{%- elif message.role == "user" %}
<|im_start|>user
{{ message.content }}<|im_end|>
{%- elif message.role == "assistant" %}
<|im_start|>assistant
{{ message.content }}<|im_end|>
{%- endif %}
{%- endfor %}
{%- if add_generation_prompt %}
<|im_start|>assistant
{%- if enable_thinking is defined and enable_thinking is true %}
<think>
{%- else %}
<think>
</think>
{%- endif %}
{%- endif %}