j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
{% set loop_messages = messages %}{% for message in loop_messages %}{% set content = '
' + message['role'] + '


'+ message['content'] | trim + '
' %}{% if loop.index0 == 0 %}{% set content = bos_token + content %}{% endif %}{{ content }}{% endfor %}{% if add_generation_prompt %}{{ '
assistant


' }}{% endif %}