Download chat_template.jinja from inference4j/phi-4-mini-instruct: direct link, hf CLI and curl.
- Browser
- Download file 423 Bytes
-
https://huggingface.co/inference4j/phi-4-mini-instruct/resolve/main/chat_template.jinja
- Command line
-
hf download hf://inference4j/phi-4-mini-instruct/chat_template.jinja
-
curl -L -o chat_template.jinja https://huggingface.co/inference4j/phi-4-mini-instruct/resolve/main/chat_template.jinja
423 Bytes
| {% for message in messages %}{% if message['role'] == 'system' and 'tools' in message and message['tools'] is not none %}{{ '<|' + message['role'] + '|>' + message['content'] + '<|tool|>' + message['tools'] + '<|/tool|>' + '<|end|>' }}{% else %}{{ '<|' + message['role'] + '|>' + message['content'] + '<|end|>' }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<|assistant|>' }}{% else %}{{ eos_token }}{% endif %} |