chat-template-generation / templates /mistral-7b-openorca.jinja2
tjtanaa's picture
init streamlit chat-template ui
7a664fd
raw
history blame contribute delete
302 Bytes
{% if not add_generation_prompt is defined %}
{% set add_generation_prompt = false %}
{% endif %}
{% for message in messages %}
{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}
{% endfor %}
{% if add_generation_prompt %}
{{ '<|im_start|>assistant\n' }}
{% endif %}