3 lines
611 B
Plaintext
3 lines
611 B
Plaintext
|
|
{% if messages[0]['role'] == 'system' %}{{ messages[0]['content'] + eos_token }}{% set loop_messages = messages[1:] %}{% else %}{{ 'You are given a medical question. First think about the problem.
|
||
|
|
Place it between <think> and </think>.
|
||
|
|
Then, provide your solution between <SOLUTION></SOLUTION>.' + eos_token }}{% set loop_messages = messages %}{% endif %}{% for message in loop_messages %}{% if message['role'] == 'user' %}{{ message['content'] }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token }}{% endif %}{% endfor %}{% if add_generation_prompt %}{{ '<think>' }}{% endif %}
|