litmudoc commited on
Commit
69d6cba
·
verified ·
1 Parent(s): 808de7a

Upload chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +1 -1
chat_template.jinja CHANGED
@@ -63,7 +63,7 @@
63
 
64
  {%- if msg.content %}
65
  {%- if "</think>" in msg.content %}
66
- {%- set content = msg.content.split('</think>')[-1].strip() %}
67
  {%- set reasoning_content = msg.content.split('</think>')[0].strip() %}
68
  {%- if reasoning_content.startswith("<think>") %}
69
  {%- set reasoning_content = reasoning_content[9:].strip() %}
 
63
 
64
  {%- if msg.content %}
65
  {%- if "</think>" in msg.content %}
66
+ {%- set content = (msg.content.split('</think>')|last).strip() %}
67
  {%- set reasoning_content = msg.content.split('</think>')[0].strip() %}
68
  {%- if reasoning_content.startswith("<think>") %}
69
  {%- set reasoning_content = reasoning_content[9:].strip() %}