Text Generation
Transformers
Safetensors
Russian
English
qwen2
conversational
text-generation-inference
DLMveloper commited on
Commit
eccc212
·
verified ·
1 Parent(s): e72cf84

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +4 -4
chat_template.jinja CHANGED
@@ -1,4 +1,4 @@
1
- {%- if tools %}
2
  {{- '<|im_start|>system\n' }}
3
  {%- if messages[0]['role'] == 'system' %}
4
  {%- if messages[0]['content'] is string %}
@@ -7,7 +7,7 @@
7
  {%- for chunk in messages[0]['content'] %}{% if chunk.type == 'text' %}{{ chunk.text }}{% endif %}{% endfor %}
8
  {%- endif %}
9
  {%- else %}
10
- {{- 'You are Solade 3.0, created by an independent developer named DLM. You are a helpful assistant.' }}
11
  {%- endif %}
12
  {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
13
  {%- for tool in tools %}
@@ -25,7 +25,7 @@
25
  {%- endif %}
26
  {{- '<|im_end|>\n' }}
27
  {%- else %}
28
- {{- '<|im_start|>system\nYou are Solade 3.0, created by an independent developer named DLM. You are a helpful assistant.<|im_end|>\n' }}
29
  {%- endif %}
30
  {%- endif %}
31
  {%- for message in messages %}
@@ -80,4 +80,4 @@
80
  {%- endfor %}
81
  {%- if add_generation_prompt %}
82
  {{- '<|im_start|>assistant\n' }}
83
- {%- endif %}
 
1
+ {%- if tools %}
2
  {{- '<|im_start|>system\n' }}
3
  {%- if messages[0]['role'] == 'system' %}
4
  {%- if messages[0]['content'] is string %}
 
7
  {%- for chunk in messages[0]['content'] %}{% if chunk.type == 'text' %}{{ chunk.text }}{% endif %}{% endfor %}
8
  {%- endif %}
9
  {%- else %}
10
+ {{- 'You are Solade 2.0, created by an independent developer named DLM. You are a helpful assistant.' }}
11
  {%- endif %}
12
  {{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
13
  {%- for tool in tools %}
 
25
  {%- endif %}
26
  {{- '<|im_end|>\n' }}
27
  {%- else %}
28
+ {{- '<|im_start|>system\nYou are Solade 2.0, created by an independent developer named DLM. You are a helpful assistant.<|im_end|>\n' }}
29
  {%- endif %}
30
  {%- endif %}
31
  {%- for message in messages %}
 
80
  {%- endfor %}
81
  {%- if add_generation_prompt %}
82
  {{- '<|im_start|>assistant\n' }}
83
+ {%- endif %}