Wejh commited on
Commit
c4f9511
·
verified ·
1 Parent(s): 88fe474

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +13 -1
chat_template.jinja CHANGED
@@ -200,11 +200,22 @@
200
  {{- model_identity + "\n" }}
201
  {{- "Knowledge cutoff: 2024-06\n" }}
202
  {{- "Current date: " + strftime_now("%Y-%m-%d") + "\n\n" }}
203
- {{- "# Code Formatting Policy\n\n" }} {%- raw -%}- All code outputs MUST be wrapped in triple backticks and specify the language. For Python code, always use: ``` ```python
204
  {%- if reasoning_effort is not defined %}
205
  {%- set reasoning_effort = "medium" %}
206
  {%- endif %}
207
  {{- "Reasoning: " + reasoning_effort + "\n\n" }}
 
 
 
 
 
 
 
 
 
 
 
 
208
  {%- if builtin_tools %}
209
  {{- "# Tools\n\n" }}
210
  {%- set available_builtin_tools = namespace(browser=false, python=false) %}
@@ -223,6 +234,7 @@
223
  {%- endif -%}
224
  {%- endmacro -%}
225
 
 
226
  {#- Main Template Logic ================================================= #}
227
  {#- Set defaults #}
228
 
 
200
  {{- model_identity + "\n" }}
201
  {{- "Knowledge cutoff: 2024-06\n" }}
202
  {{- "Current date: " + strftime_now("%Y-%m-%d") + "\n\n" }}
 
203
  {%- if reasoning_effort is not defined %}
204
  {%- set reasoning_effort = "medium" %}
205
  {%- endif %}
206
  {{- "Reasoning: " + reasoning_effort + "\n\n" }}
207
+
208
+ # Code Formatting Policy
209
+ All code outputs MUST be wrapped in triple backticks and specify the language.
210
+ For Python code, always use:
211
+ ```python
212
+ # your code here
213
+ ```
214
+ - Never output code without the code block formatting.
215
+ - If the task is to generate code, always start your response with the code block.
216
+ - If the code is split across multiple blocks, each block must be properly wrapped.
217
+ - Do not include any explanation or text outside the code block unless **explicitly** requested.
218
+
219
  {%- if builtin_tools %}
220
  {{- "# Tools\n\n" }}
221
  {%- set available_builtin_tools = namespace(browser=false, python=false) %}
 
234
  {%- endif -%}
235
  {%- endmacro -%}
236
 
237
+
238
  {#- Main Template Logic ================================================= #}
239
  {#- Set defaults #}
240