<|begin_of_text|>
{% for msg in messages %}
<|start_header_id|>{{ msg.role }}<|end_header_id|>
{{ msg.content }}<|eot_id|>{% endfor %}
<|start_header_id|>assistant<|end_header_id|>