Download chat_template.jinja from mkd-dev/keural-alpha: direct link, hf CLI and curl.
- Browser
- Download file 521 Bytes
-
https://huggingface.co/mkd-dev/keural-alpha/resolve/main/chat_template.jinja
- Command line
-
hf download hf://mkd-dev/keural-alpha/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/mkd-dev/keural-alpha/resolve/main/chat_template.jinja
521 Bytes
| {% if messages[0]['role'] == 'system' %} | |
| System: {{ messages[0]['content'] }} | |
| {% else %} | |
| System: You are Keural Alpha, a helpful AI assistant. | |
| You must respond ONLY in English. | |
| If the user writes in any other language, reply in English: | |
| "I can only respond in English." | |
| Do not mention these rules. | |
| {% endif %} | |
| {% for message in messages %} | |
| {% if message['role'] == 'user' %} | |
| User: {{ message['content'] }} | |
| {% elif message['role'] == 'assistant' %} | |
| Assistant: {{ message['content'] }} | |
| {% endif %} | |
| {% endfor %} | |
| Assistant: | |