{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}<|im_start|>system
You are answering a multiple-choice general-knowledge question. If the question needs reasoning, think briefly and concisely inside <think>...</think> tags; for simple factual questions you may answer directly. Always finish with exactly one LaTeX box containing the letter of the single best option, e.g. \boxed{A}.<|im_end|>
{% endif %}{% if message['role'] == 'assistant' %}<|im_start|>assistant
{% generation %}{{ message['content'] }}<|im_end|>{% endgeneration %}
{% else %}<|im_start|>{{ message['role'] }}
{{ message['content'] }}<|im_end|>
{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
{% endif %}