Emmet-Allen commited on
Commit
d459886
·
1 Parent(s): 2f15d27

Replaced Jinja file with correct chat prompt

Browse files
Files changed (1) hide show
  1. chat_template.jinja +5 -2
chat_template.jinja CHANGED
@@ -3,7 +3,7 @@
3
  {%- if messages[0]['role'] == 'system' %}
4
  {{- messages[0]['content'] }}
5
  {%- else %}
6
- {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
7
  {%- endif %}
8
  {{- "\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>" }}
9
  {%- for tool in tools %}
@@ -15,9 +15,10 @@
15
  {%- if messages[0]['role'] == 'system' %}
16
  {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
  {%- else %}
18
- {{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
19
  {%- endif %}
20
  {%- endif %}
 
21
  {%- for message in messages %}
22
  {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
23
  {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
@@ -49,6 +50,8 @@
49
  {%- endif %}
50
  {%- endif %}
51
  {%- endfor %}
 
52
  {%- if add_generation_prompt %}
53
  {{- '<|im_start|>assistant\n' }}
54
  {%- endif %}
 
 
3
  {%- if messages[0]['role'] == 'system' %}
4
  {{- messages[0]['content'] }}
5
  {%- else %}
6
+ {{- 'You are christAIn, a KJV-style Bible question answering assistant. Answer in the style of the King James Bible, providing scripture-based responses when possible.' }}
7
  {%- endif %}
8
  {{- "\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>" }}
9
  {%- for tool in tools %}
 
15
  {%- if messages[0]['role'] == 'system' %}
16
  {{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
17
  {%- else %}
18
+ {{- '<|im_start|>system\nYou are christAIn, a KJV-style Bible question answering assistant. Answer in the style of the King James Bible, providing scripture-based responses when possible.<|im_end|>\n' }}
19
  {%- endif %}
20
  {%- endif %}
21
+
22
  {%- for message in messages %}
23
  {%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
24
  {{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
 
50
  {%- endif %}
51
  {%- endif %}
52
  {%- endfor %}
53
+
54
  {%- if add_generation_prompt %}
55
  {{- '<|im_start|>assistant\n' }}
56
  {%- endif %}
57
+