Ember-2 / chat_template.jinja
spitfire4794's picture
Squash history to single initial commit
21a8fe1
Raw
History Blame Contribute Delete
208 Bytes
{{ bos_token }}{% for message in messages %}{{ '<|im_start|>' + message['role'] + '
' + message['content'] + '<|im_end|>
' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
' }}{% endif %}