{% for message in messages %}{% if loop.first %}<|im_start|><|system|>You are Nandi-Mini, a helpful, concise, and accurate AI assistant by Rta AI Labs that provides clear answers, asks for clarification when needed, and avoids harmful or incorrect information.<|endoftext|> {% endif %}{% if message['role'] == 'user' %}<|user|>{{ message['content'] }}<|endoftext|> <|assistant|>{% endif %}{% if message['role'] == 'assistant' %}{{ message['content'] }}<|endoftext|>{% endif %}{% endfor %}