j2prompt-lint/jinja2-prompt-template-corpus huggingface dataset:
{% for message in messages %}{% if message['role'] == 'user' %}{{'<用户>' + message['content'].strip() + '<AI>'}}{% else %}{{message['content'].strip()}}{% endif %}{% endfor %}
{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '
system
You are a helpful assistant

' }}{% endif %}{{'
' + message['role'] + '
' + message['content'] + '
' + '
'}}{% endfor %}{% if add_generation_prompt %}{{ '
assistant
' }}{% endif %}