llama.cpp/tests/chat/templates/NousResearch-Hermes-2-Pro-Mistral-7B-default.jinja

4 lines
209 B
Django/Jinja

{{bos_token}}{% for message in messages %}{{'<|im_start|>' + message['role'] + '
' + message['content'] + '<|im_end|>' + '
'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
' }}{% endif %}