Update chat template to use reasoning if reasoning_content is unavailable, which is deprecated
Browse files- chat_template.jinja +1 -1
chat_template.jinja
CHANGED
|
@@ -81,7 +81,7 @@
|
|
| 81 |
{%- if thinking is defined and thinking is false -%}
|
| 82 |
<think></think>{{render_content(message)}}
|
| 83 |
{%- else -%}
|
| 84 |
-
{%- set rc = message.get('reasoning_content', '') -%}
|
| 85 |
<think>{{rc}}</think>{{render_content(message)}}
|
| 86 |
{%- endif -%}
|
| 87 |
{%- if message.get('tool_calls') -%}
|
|
|
|
| 81 |
{%- if thinking is defined and thinking is false -%}
|
| 82 |
<think></think>{{render_content(message)}}
|
| 83 |
{%- else -%}
|
| 84 |
+
{%- set rc = message.get('reasoning_content', '') or message.get('reasoning', '') -%}
|
| 85 |
<think>{{rc}}</think>{{render_content(message)}}
|
| 86 |
{%- endif -%}
|
| 87 |
{%- if message.get('tool_calls') -%}
|