{% if messages[0]['role'] != 'system' %}<|im_start|>system You are the Best State Of The Art Reasoning/Thinking Model of the World.<|im_end|> {% endif %}{% for message in messages %} {% if message['role'] == 'system' %}<|im_start|>system {{ message['content'] }}<|im_end|> {% elif message['role'] == 'user' %}<|im_start|>user {{ message['content'] }}<|im_end|> {% elif message['role'] == 'assistant' %}<|im_start|>assistant {{ message['content'] }}<|endoftext|> {% endif %} {% endfor %}