Emit an empty thought after a tool response when enable_thinking=false

#53
Files changed (1) hide show
  1. chat_template.jinja +2 -0
chat_template.jinja CHANGED
@@ -386,5 +386,7 @@
386
  {%- endif -%}
387
  {%- elif ns.prev_message_type == 'tool_response' and enable_thinking -%}
388
  {{- '<|channel>thought\n' -}}
 
 
389
  {%- endif -%}
390
  {%- endif -%}
 
386
  {%- endif -%}
387
  {%- elif ns.prev_message_type == 'tool_response' and enable_thinking -%}
388
  {{- '<|channel>thought\n' -}}
389
+ {%- elif ns.prev_message_type == 'tool_response' -%}
390
+ {{- '<|channel>thought\n<channel|>' -}}
391
  {%- endif -%}
392
  {%- endif -%}