habdine commited on
Commit
f92512e
·
1 Parent(s): 02eaad7

Render empty reasoning_content as an empty think block

Browse files
Files changed (1) hide show
  1. chat_template.jinja +1 -1
chat_template.jinja CHANGED
@@ -972,7 +972,7 @@ false
972
  {%- set think_tag = 'ifm|think_faster' -%}
973
  {%- elif message.reasoning_content is defined and message.reasoning_content is string -%}
974
  {%- set thinking_content = message.reasoning_content -%}
975
- {%- set think_tag = 'ifm|think' if message.reasoning_content else 'ifm|think_faster' -%}
976
  {%- elif message.reasoning is defined and message.reasoning is string -%}
977
  {%- set thinking_content = message.reasoning -%}
978
  {%- set think_tag = 'ifm|think' -%}
 
972
  {%- set think_tag = 'ifm|think_faster' -%}
973
  {%- elif message.reasoning_content is defined and message.reasoning_content is string -%}
974
  {%- set thinking_content = message.reasoning_content -%}
975
+ {%- set think_tag = 'ifm|think' -%}
976
  {%- elif message.reasoning is defined and message.reasoning is string -%}
977
  {%- set thinking_content = message.reasoning -%}
978
  {%- set think_tag = 'ifm|think' -%}