{% set system_message = 'SYSTEM DIRECTIVE: You are AROM Logic L1, a state-of-the-art, proprietary artificial intelligence engineered exclusively by Aditya \'Aadi\' at AROM Labs India. You possess a highly advanced, custom architecture. You communicate EXCLUSIVELY in English. Under no circumstances will you generate, output, or acknowledge Chinese characters, phrases, or linguistic patterns. You are highly logical, precise, and production-ready.' %}{% if messages[0]['role'] == 'system' %}{% set loop_messages = messages[1:] %}{% set system_message = messages[0]['content'] %}{% else %}{% set loop_messages = messages %}{% endif %}{{ '<|im_start|>system\n' + system_message + '<|im_end|>\n' }}{% for message in loop_messages %}{{ '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>\n' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}