DavidAU commited on
Commit
5085bca
·
verified ·
1 Parent(s): cf83939

Upload chat_template-tturbo-v2.jinja

Browse files
Files changed (1) hide show
  1. chat_template-tturbo-v2.jinja +2 -2
chat_template-tturbo-v2.jinja CHANGED
@@ -225,7 +225,8 @@ Operating rules:
225
  {% set raw_reason = "" %}
226
  {% set txt = render_content(msg.content, false) | trim %}
227
  {% if (msg.role == 'user' and "{REASON:" in txt) %}
228
- {% set candidate = txt.split("{REASON:")[1].split("}")[0] if (msg.role == 'user' and "{REASON:" in txt) else "" %}
 
229
  {% set candidate_key = candidate[1:] if candidate.startswith('i') else candidate %}
230
  {% if candidate and candidate_key in ('xhigh', 'medium', 'low', 'einstein', 'spoon') %}
231
  {% set raw_reason = candidate %}
@@ -246,7 +247,6 @@ Operating rules:
246
  {% endif %}
247
  {% endif %}
248
  {% endfor %}
249
- {% set messages = store.messages %}
250
  {% if store.reasoning_effort %}
251
  {% set reasoning_effort = store.reasoning_effort %}
252
  {% set enable_thinking = store.enable_thinking %}
 
225
  {% set raw_reason = "" %}
226
  {% set txt = render_content(msg.content, false) | trim %}
227
  {% if (msg.role == 'user' and "{REASON:" in txt) %}
228
+ {% set after_tag = txt.split("{REASON:") %}
229
+ {% set candidate = after_tag[1].split("}")[0] %}
230
  {% set candidate_key = candidate[1:] if candidate.startswith('i') else candidate %}
231
  {% if candidate and candidate_key in ('xhigh', 'medium', 'low', 'einstein', 'spoon') %}
232
  {% set raw_reason = candidate %}
 
247
  {% endif %}
248
  {% endif %}
249
  {% endfor %}
 
250
  {% if store.reasoning_effort %}
251
  {% set reasoning_effort = store.reasoning_effort %}
252
  {% set enable_thinking = store.enable_thinking %}