j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
{% for message in messages %}{% if message['role'] == 'assistant' %}{% set role = 'assistant' %}{% else %}{% set role = message['role'] %}{% endif %}
{{ role }}
{{ message['content'] | trim }}

{% endfor %}{% if add_generation_prompt %}{{'
assistant
'}}{% endif %}
{{ bos_token }}{% for message in messages %}{% if message['role'] == 'user' %}{{ '
user


' + message['content'] | trim + '
' }}{% elif message['role'] == 'assistant' %}{{ '
assistant


' + message['content'] | trim + '
' }}{% else %}{{ '
' + message['role'] + '


' + message['content'] | trim + '
' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '
assistant


' }}{% endif %}
{% for message in messages %}{{'
' + message['role'] + '
' + message['content'] + '
' + '
'}}{% endfor %}{% if add_generation_prompt %}{{ '
assistant
' }}{% if enable_thinking is defined and enable_thinking is false %}{{ '<think>

</think>
' }}{% endif %}{% endif %}