{{ bos_token }}{{ 'Below are some instructions that describe some tasks. Write responses that appropriately complete each request.' }}{% for message in messages %}{% if message['role'] == 'user' %}{{ ' | |
### Instruction: | |
' + message['content'] }}{% elif message['role'] == 'assistant' %}{{ ' | |
### Output: | |
' + message['content'] + '<|end_of_text|>' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ ' | |
### Output: | |
' }}{% endif %} |