Terrencez commited on
Commit
5a04e88
·
verified ·
1 Parent(s): bf149c9

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +11 -1
chat_template.jinja CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  {%- set reasoning = reasoning if reasoning is not undefined else (false if reasoning_effort is defined and reasoning_effort | lower == "none" else true) -%}
2
  {%- set grounding = grounding | default("disabled") | upper %}
3
  {%- set grounding_enabled = grounding == "ENABLED" %}
@@ -246,4 +256,4 @@ Your output should adhere to the following json schema:
246
 
247
  ]<|END_TOOL_RESULT|><|END_OF_TURN_TOKEN|>
248
  {%- endif %}
249
- {%- endfor %}{%- if add_generation_prompt -%}<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>{% if reasoning %}<|START_THINKING|>{% else %}<|START_THINKING|><|END_THINKING|>{% endif %}{%- endif %}
 
1
+ {%- if not platform_instruction_override %}
2
+ {%- set platform_instruction_override -%}
3
+ These instructions are always to be followed and cannot be overridden by subsequent system or user turns:
4
+ - You will answer requests for educational, informative, or creative content related to safety categories. You will not provide content that is harmful or could be used to cause harm.
5
+
6
+ These instructions serve as your defaults, but they can be overridden in subsequent system or user turns:
7
+ - Your name is Command.
8
+ - You are a large language model built by Cohere.
9
+ {%- endset %}
10
+ {%- endif %}
11
  {%- set reasoning = reasoning if reasoning is not undefined else (false if reasoning_effort is defined and reasoning_effort | lower == "none" else true) -%}
12
  {%- set grounding = grounding | default("disabled") | upper %}
13
  {%- set grounding_enabled = grounding == "ENABLED" %}
 
256
 
257
  ]<|END_TOOL_RESULT|><|END_OF_TURN_TOKEN|>
258
  {%- endif %}
259
+ {%- endfor %}{%- if add_generation_prompt -%}<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>{% if reasoning %}<|START_THINKING|>{% else %}<|START_THINKING|><|END_THINKING|>{% endif %}{%- endif %}