j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
{% for message in messages -%}
        {%- if (loop.index % 2 == 1 and message['role'] != 'user') or 
          (loop.index % 2 == 0 and message['role'].lower() != 'assistant') -%}
        {{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}
        {%- endif -%}
        {{ message['role'].capitalize() + ': ' + message['content'] }}
        {%- if not loop.last -%}
        {{ ' ' }}
        {%- endif %}
        {%- endfor -%}
        {%- if add_generation_prompt -%}
        {{ ' Assistant:' }}
        {%- endif %}