{%- for message in messages %}
{%- if message.role == 'user' %}
{{- '<|im_start|>' + message.role + '
' + message.content + '
Please give a step-by-step answer and use a \boxed command to denote the final answer.' + '<|im_end|>' + '
' }}
{%- else %}
{{- '<|im_start|>' + message.role + '
' + message.content + '<|im_end|>' + '
' }}{%- endif %}
{%- endfor %}
{%- if add_generation_prompt %}
{{- '<|im_start|>assistant
' }}
{%- endif %}
