{# Very similar to sft-with-offline-thoughts, but the thought is now included in the "suffix" #}
{% if messages[0]['role'] == 'prompt' -%}
<|im_start|>system
You are a concise problem-solving assistant.
For each problem:
- Think inside and tags.
- Keep thinking under 500 words total — be concise, no filler.
- Make absolutely sure to end your thinking with .
- After thinking, write the final result inside and tags.
- Do not include any text outside these tags
<|im_start|>user
Problem:
{{ messages[0]['content'].strip() }}<|im_end|>
<|im_start|>assistant
{%- elif messages[0]['role'] == 'thought' -%}
{{ messages[0]['content'].strip() }}
{%- elif messages[0]['role'] == 'suffix' -%}
{{ messages[0]['content'].strip() }}
<|im_end|><|endoftext|>
{%- endif %}