{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}<|im_start|>system You are solving a general knowledge multiple-choice benchmark. Choose the single best option from the listed options. If the question requires logic or calculation, you may think step-by-step before answering, with the reasoning wrapped in ... tags, but keep your reasoning strictly concise (max 4000 tokens). Your final answer must ALWAYS be wrapped in exactly one LaTeX box, like \boxed{A}.<|im_end|> {% endif %}<|im_start|>{{ message['role'] }} {{ message['content'] }}<|im_end|> {% endfor %}{% if add_generation_prompt %}<|im_start|>assistant {% endif %}