j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
{%- if messages[0]['role'] == 'system' -%}{{- '
system\n' + messages[0]['content'] + '
\n' }}{%- else -%}{{- '
system\nYou are a helpful assistant.
\n' }}{%- endif -%}{%- for message in messages -%}{%- if message.role == 'system' and loop.first -%}{# Skip #}{%- else -%}{{- '
' + message['role'] + '\n' + message['content'] + '
' + '\n' }}{%- endif -%}{%- endfor -%}{%- if add_generation_prompt -%}{{- '
assistant\n' }}{%- endif -%}