{#- ChatML for the US-chain Cooking Assistant (OLMo 3 7B base). Same turn markup as allenai/Olmo-3-7B-Instruct's template (<|im_start|>role\n ... <|im_end|>\n), without its default "function-calling" system prompt and tool syntax: no system message is injected when none is given. Every assistant turn ends with <|im_end|> (the trained stop token); generation stops on <|im_end|> (100265) or <|endoftext|> (100257). -#} {%- for message in messages -%} {{- '<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>\n' -}} {%- endfor -%} {%- if add_generation_prompt -%}{{- '<|im_start|>assistant\n' -}}{%- endif -%}