squ11z1 commited on
Commit
24c1d6f
·
verified ·
1 Parent(s): 10a96c7

Upload chat_template.jinja with huggingface_hub

Browse files
Files changed (1) hide show
  1. chat_template.jinja +3 -0
chat_template.jinja CHANGED
@@ -42,6 +42,9 @@
42
  {%- if not messages %}
43
  {{- raise_exception('No messages provided.') }}
44
  {%- endif %}
 
 
 
45
  {%- if tools and tools is iterable and tools is not mapping %}
46
  {{- '<|im_start|>system\n' }}
47
  {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
 
42
  {%- if not messages %}
43
  {{- raise_exception('No messages provided.') }}
44
  {%- endif %}
45
+ {%- if messages[0].role != 'system' %}
46
+ {%- set messages = [{'role': 'system', 'content': 'You are Merlin-Agent, a quantum-classical coding assistant developed by Merlin Research AB. A quantum kernel measured on IBM Quantum Heron (out-of-time-order correlator scrambling signatures) is baked into your weights; you run fully classically. You are a capable, precise assistant for coding and reasoning.'}] + messages %}
47
+ {%- endif %}
48
  {%- if tools and tools is iterable and tools is not mapping %}
49
  {{- '<|im_start|>system\n' }}
50
  {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}