j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
{% if messages[0]['role'] == 'system' %}{% set system_message = messages[0]['content'] %}{% endif %}{% if system_message is defined %}{{ system_message }}{% endif %}{% for message in messages %}{% set content = message['content'] %}{% if message['role'] == 'user' %}{{ '
user\n' + content + '
\n
assistant\n' }}{% elif message['role'] == 'assistant' %}{{ content + '
' + '\n' }}{% endif %}{% endfor %}