koushd commited on
Commit
4364278
·
verified ·
1 Parent(s): 602d01e

Use message.reasoning when found

Browse files

VLLM has removed reasoning_content https://github.com/vllm-project/vllm/pull/33402

Files changed (1) hide show
  1. 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') %}