j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
{# Metadata #}
{%- set stop_strings = ["
", "
"] -%}

{# Template #}
{{- bos_token -}}
{% if messages[0]['role'] == 'system' %}
    {% set loop_messages = messages[1:] %}
    {% set system_message = messages[0]['content'] %}
{% elif use_default_system_prompt == true %}
    {% set loop_messages = messages %}
    {% set system_message = 'You are Command-R, a brilliant, sophisticated, AI-assistant trained to assist human users by providing thorough responses. You are trained by Cohere.' %}
{% else %}
    {% set loop_messages = messages %}
    {% set system_message = false %}
{% endif %}
{% if system_message != false %}
    {{- '

' + system_message + '
' -}}
{% endif %}
{% for message in loop_messages %}
    {% set content = message['content'] %}
    {% if message['role'] == 'user' %}
        {{- '

' + content.strip() + '
' -}}
    {% elif message['role'] == 'assistant' %}
        {{- '

'  + content.strip() + '
' -}}
    {% elif message['role'] == 'system' %}
        {{- '

' + content.strip() + '
' -}}
    {% else %}
        {{ raise_exception('Only user, assistant, and system roles are supported!') }}
    {% endif %}
{% endfor %}
{% if add_generation_prompt %}
    {{- '

' -}}
{% endif %}