mikasenghaas commited on
Commit
dd6752e
·
unverified ·
1 Parent(s): 2461b94

Remove fallback system prompt

Browse files
Files changed (1) hide show
  1. chat_template.jinja +7 -3
chat_template.jinja CHANGED
@@ -26,8 +26,6 @@
26
  {%- else %}
27
  {%- if tools is iterable and tools | length > 0 %}
28
  {{- "<|im_start|>system\nYou are INTELLECT-3, a helpful assistant developed by Prime Intellect, that can interact with a computer to solve tasks." }}
29
- {%- else %}
30
- {{- "<|im_start|>system\nYou are INTELLECT-3, a helpful assistant developed by Prime Intellect." }}
31
  {%- endif %}
32
  {%- endif %}
33
  {%- if tools is iterable and tools | length > 0 %}
@@ -67,7 +65,13 @@
67
  {{- "\n</tools>" }}
68
  {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
69
  {%- endif %}
70
- {{- '<|im_end|>\n' }}
 
 
 
 
 
 
71
  {%- for message in loop_messages %}
72
  {%- if message.role == "assistant" and message.tool_calls is defined and message.tool_calls is iterable and message.tool_calls | length > 0 %}
73
  {{- '<|im_start|>' + message.role }}
 
26
  {%- else %}
27
  {%- if tools is iterable and tools | length > 0 %}
28
  {{- "<|im_start|>system\nYou are INTELLECT-3, a helpful assistant developed by Prime Intellect, that can interact with a computer to solve tasks." }}
 
 
29
  {%- endif %}
30
  {%- endif %}
31
  {%- if tools is iterable and tools | length > 0 %}
 
65
  {{- "\n</tools>" }}
66
  {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
67
  {%- endif %}
68
+ {%- if system_message is defined %}
69
+ {{- '<|im_end|>\n' }}
70
+ {%- else %}
71
+ {%- if tools is iterable and tools | length > 0 %}
72
+ {{- '<|im_end|>\n' }}
73
+ {%- endif %}
74
+ {%- endif %}
75
  {%- for message in loop_messages %}
76
  {%- if message.role == "assistant" and message.tool_calls is defined and message.tool_calls is iterable and message.tool_calls | length > 0 %}
77
  {{- '<|im_start|>' + message.role }}