Use message.reasoning when found
#39
by
koushd
- opened
- chat_template.jinja +2 -0
chat_template.jinja
CHANGED
|
@@ -43,6 +43,8 @@ For each function call, output the function name and arguments within the follow
|
|
| 43 |
{%- set content = visible_text(m.content) %}
|
| 44 |
{%- if m.reasoning_content is string %}
|
| 45 |
{%- set reasoning_content = m.reasoning_content %}
|
|
|
|
|
|
|
| 46 |
{%- else %}
|
| 47 |
{%- if '</think>' in content %}
|
| 48 |
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|
|
|
|
| 43 |
{%- set content = visible_text(m.content) %}
|
| 44 |
{%- if m.reasoning_content is string %}
|
| 45 |
{%- set reasoning_content = m.reasoning_content %}
|
| 46 |
+
{%- elif m.reasoning is string %}
|
| 47 |
+
{%- set reasoning_content = m.reasoning %}
|
| 48 |
{%- else %}
|
| 49 |
{%- if '</think>' in content %}
|
| 50 |
{%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
|