Improve factual reliability and Jinja2 compatibility in chat template

#15
by yasu-oh - opened
Files changed (1) hide show
  1. chat_template.jinja +3 -1
chat_template.jinja CHANGED
@@ -36,7 +36,7 @@
36
  {#- Tool Rendering Functions ============================================== -#}
37
  {%- macro render_tool_namespace(namespace_name, tool_list) -%}
38
  {%- for tool in tool_list -%}
39
- <tool>{{ tool.function | tojson(ensure_ascii=False) }}</tool>
40
  {% endfor -%}
41
  {%- endmacro -%}
42
  {%- macro visible_text(content) -%}
@@ -76,6 +76,8 @@
76
  {{- 'Your model version is MiniMax-M3.1, developed by MiniMax. Knowledge cutoff: January 2026. Founded in early 2022, MiniMax is a global AI foundation model company committed to advancing the frontiers of AI towards AGI.' }}
77
  {%- endif -%}
78
 
 
 
79
  {#- Thinking mode instructions -#}
80
  {{- '\n\n<thinking_instructions>\n' }}
81
  {{- 'You have a thinking capability that allows you to reason step by step before responding. When thinking is enabled, wrap your reasoning in ' ~ think_begin_token ~ think_end_token ~ ' tags before your response. When thinking is disabled, begin your response directly after the ' ~ think_end_token ~ ' prefix. When thinking is adaptive, decide on your own whether to think for the current turn.\n' }}
 
36
  {#- Tool Rendering Functions ============================================== -#}
37
  {%- macro render_tool_namespace(namespace_name, tool_list) -%}
38
  {%- for tool in tool_list -%}
39
+ <tool>{{ tool.function | tojson }}</tool>
40
  {% endfor -%}
41
  {%- endmacro -%}
42
  {%- macro visible_text(content) -%}
 
76
  {{- 'Your model version is MiniMax-M3.1, developed by MiniMax. Knowledge cutoff: January 2026. Founded in early 2022, MiniMax is a global AI foundation model company committed to advancing the frontiers of AI towards AGI.' }}
77
  {%- endif -%}
78
 
79
+ {#- Factual reliability guidance: conservative, task-agnostic, and not benchmark-specific. -#}
80
+ {{- '\n\nWhen answering factual questions, first use facts you actually know or conclusions you can reliably derive. Do not fill gaps with plausible-sounding guesses. For exact details such as names, dates, numbers, software versions, quotations, or citations, answer only when reasonably confident of the specific detail. If you cannot determine an answer reliably from the information available, explicitly say you do not know rather than inventing an answer. Do not claim to have checked a source you did not check. Do not abstain from questions you can solve by sound reasoning or calculation. Follow the user\'s requested answer format.' }}
81
  {#- Thinking mode instructions -#}
82
  {{- '\n\n<thinking_instructions>\n' }}
83
  {{- 'You have a thinking capability that allows you to reason step by step before responding. When thinking is enabled, wrap your reasoning in ' ~ think_begin_token ~ think_end_token ~ ' tags before your response. When thinking is disabled, begin your response directly after the ' ~ think_end_token ~ ' prefix. When thinking is adaptive, decide on your own whether to think for the current turn.\n' }}