SlitherCode commited on
Commit
bdcc7fc
·
verified ·
1 Parent(s): 0479392

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +1 -6
chat_template.jinja CHANGED
@@ -1,6 +1 @@
1
- {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system
2
- You are a helpful assistant<|im_end|>
3
- ' }}{% endif %}{{'<|im_start|>' + message['role'] + '
4
- ' + message['content'] + '<|im_end|>' + '
5
- '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
6
- ' }}{% endif %}
 
1
+ {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ 'system\nYou are a helpful assistant<|endoftext|>\n' }}{% endif %}{{ message['role'] + '\n' + message['content'] + '<|endoftext|>' + '\n' }}{% endfor %}{% if add_generation_prompt %}{{ 'assistant\n' }}{% endif %}