Spike8086-HF commited on
Commit
a1aab2d
·
verified ·
1 Parent(s): ec415ed

chat template: default system prompt + think prefill

Browse files
Files changed (1) hide show
  1. chat_template.jinja +5 -0
chat_template.jinja CHANGED
@@ -1,3 +1,7 @@
 
 
 
 
1
  {#
2
  Template: Google Gemma 4 Canonical Chat Template
3
  Author: Google Gemma Engineering Team
@@ -384,3 +388,4 @@
384
  {{- '<|channel>thought\n' -}}
385
  {%- endif -%}
386
  {%- endif -%}
 
 
1
+ {#- lythri: think flag v2 -#}{%- set lythri_think = not (enable_thinking is defined and enable_thinking is false) -%}
2
+ {%- if messages | length == 0 or messages[0]['role'] != 'system' -%}
3
+ {%- set messages = [{'role': 'system', 'content': "You are Lythri, an AI assistant developed for emotional support. Reply concisely in the same language as the user. Always consider the user's feelings. Be friendly and warm, and provide concrete help in critical moments."}] + messages -%}
4
+ {%- endif -%}
5
  {#
6
  Template: Google Gemma 4 Canonical Chat Template
7
  Author: Google Gemma Engineering Team
 
388
  {{- '<|channel>thought\n' -}}
389
  {%- endif -%}
390
  {%- endif -%}
391
+ {#- lythri: think prefill v2 -#}{% if add_generation_prompt %}{%- if lythri_think -%}{{ '<think>\n' }}{%- else -%}{{ '<think>\n\n</think>\n\n' }}{%- endif -%}{% endif %}