aedmark commited on
Commit
15f3bae
·
verified ·
1 Parent(s): 011b8e0

Update template

Browse files
Files changed (1) hide show
  1. template +5 -6
template CHANGED
@@ -1,6 +1,5 @@
1
- {% for message in messages %}
2
- {{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>\n'}}
3
- {% endfor %}
4
- {% if add_generation_prompt %}
5
- {{ '<|im_start|>assistant\n' }}
6
- {% endif %}
 
1
+ {{ if .System }}<|im_start|>system
2
+ {{ .System }}<|im_end|>
3
+ {{ end }}{{ if .Prompt }}<|im_start|>user
4
+ {{ .Prompt }}<|im_end|>
5
+ {{ end }}<|im_start|>assistant