joaogante commited on
Commit
20ddafc
·
verified ·
1 Parent(s): f3b5097

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +1 -0
chat_template.jinja CHANGED
@@ -369,6 +369,7 @@
369
  {%- if ns.prev_message_type == 'tool_call' and not ns_tr_out.flag -%}
370
  {{- '<|tool_response>' -}}
371
  {%- elif continues_into_next -%}
 
372
  {{- '<turn|>\n' -}}
373
  {%- endif -%}
374
  {%- endif -%}
 
369
  {%- if ns.prev_message_type == 'tool_call' and not ns_tr_out.flag -%}
370
  {{- '<|tool_response>' -}}
371
  {%- elif continues_into_next -%}
372
+ {%- elif not (ns_tr_out.flag and not has_content and not next_nt.found) -%}
373
  {{- '<turn|>\n' -}}
374
  {%- endif -%}
375
  {%- endif -%}