Download chat_template.jinja from OpenMOSS-Team/MOSS-VoiceGenerator: direct link, hf CLI and curl.
- Browser
- Download file 352 Bytes
-
https://huggingface.co/OpenMOSS-Team/MOSS-VoiceGenerator/resolve/42c5ffd1ed8f3b28b6550394dd35c08534be09a3/chat_template.jinja
- Command line
-
hf download hf://OpenMOSS-Team/MOSS-VoiceGenerator@42c5ffd1ed8f3b28b6550394dd35c08534be09a3/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/OpenMOSS-Team/MOSS-VoiceGenerator/resolve/42c5ffd1ed8f3b28b6550394dd35c08534be09a3/chat_template.jinja
352 Bytes
| {% for message in messages %}<|im_start|>{{ message['role'] }} | |
| {% if message['content'] is string %}{{ message['content'] }}{% else %}{% for content in message['content'] %}{% if content.get('type') == 'text' %}{{ content['text'] }}{% endif %}{% endfor %}{% endif %}<|im_end|> | |
| {% endfor %}{% if add_generation_prompt %}<|im_start|>assistant | |
| {% endif %} |