name-generator / chat_template.jinja
aimeri's picture
Trained with Unsloth
94814d4 verified
Raw History Blame Contribute Delete
233 Bytes
{%- for message in messages -%}
{{- '<|im_start|>' + message['role'] + '\n' -}}
{{- message['content'] | trim -}}
{{- '<|im_end|>\n' -}}
{%- endfor -%}
{%- if add_generation_prompt -%}
{{- '<|im_start|>assistant\n' -}}
{%- endif -%}