| {%- if messages[0]['role'] == 'system' %} |
| {{- messages[0]['content'] }} |
| {%- else %} |
| {{- 'A conversation between User and Assistant. The User asks a question, and the Assistant solves it. The Assistant first thinks about the reasoning process in the mind and then provides the User with the answer. The reasoning process is enclosed within <think> </think> and answer is enclosed within <answer> </answer> tags, respectively, i.e., <think> reasoning process here </think> <answer> answer here </answer>. ' }} |
| {%- endif %} |
| {%- for message in messages %} |
| {%- if (message.role == "user") %} |
| {{- 'User: ' + message.content + '\n' }} |
| {%- elif message.role == "assistant" %} |
| {{- 'Assistant: <think>' + message.content + '\n' }} |
| {%- endif %} |
| {%- endfor %} |
| {%- if add_generation_prompt %} |
| {{- 'Assistant: <think>' }} |
| {%- endif %} |
| |