kcz358 commited on
Commit
1c11083
·
verified ·
1 Parent(s): 257608b

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +1 -1
chat_template.jinja CHANGED
@@ -2,7 +2,7 @@
2
  You are a helpful assistant.<|im_end|>
3
  {% endif %}<|im_start|>{{ message['role'] }}
4
  {% if message['content'] is string %}{{ message['content'] }}<|im_end|>
5
- {% else %}{% for content in message['content'] %}{% if 'audio' in content or 'audio_url' in content %}{% set audio_count.value = audio_count.value + 1 %}<|AUDIO|>
6
  {% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>
7
  {% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
8
  {% endif %}
 
2
  You are a helpful assistant.<|im_end|>
3
  {% endif %}<|im_start|>{{ message['role'] }}
4
  {% if message['content'] is string %}{{ message['content'] }}<|im_end|>
5
+ {% else %}{% for content in message['content'] %}{% if 'audio' in content or 'audio_url' in content or content['type'] == 'audio'%}{% set audio_count.value = audio_count.value + 1 %}<|AUDIO|>
6
  {% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>
7
  {% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
8
  {% endif %}