cnmoro commited on
Commit
c0e8df7
·
verified ·
1 Parent(s): 65ec679

Update chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +12 -2
chat_template.jinja CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  {#- Tool Definition Rendering ============================================== #}
2
  {%- macro render_typescript_type(param_spec, required_params, is_nullable=false) -%}
3
  {%- if param_spec.type == "array" -%}
@@ -324,8 +332,10 @@
324
  {#- Generation prompt #}
325
  {%- if add_generation_prompt -%}
326
  {%- if reasoning_effort == "disabled" -%}
327
- <|start|>assistant<|channel|>final<|message|>
328
  {%- else -%}
329
- <|start|>assistant
330
  {%- endif -%}
 
 
331
  {%- endif -%}
 
1
+ {#-
2
+ In addition to the normal inputs of `messages` and `tools`, this template also accepts the
3
+ following kwargs:
4
+ - "builtin_tools": A list, can contain "browser" and/or "python".
5
+ - "model_identity": A string that optionally describes the model identity.
6
+ - "reasoning_effort": A string that describes the reasoning effort, defaults to "medium".
7
+ #}
8
+
9
  {#- Tool Definition Rendering ============================================== #}
10
  {%- macro render_typescript_type(param_spec, required_params, is_nullable=false) -%}
11
  {%- if param_spec.type == "array" -%}
 
332
  {#- Generation prompt #}
333
  {%- if add_generation_prompt -%}
334
  {%- if reasoning_effort == "disabled" -%}
335
+ <|start|>assistant<|channel|>final<|message|>
336
  {%- else -%}
337
+ <|start|>assistant
338
  {%- endif -%}
339
+ {%- elif reasoning_effort == "disabled" -%}
340
+ <|start|>assistant<|channel|>final<|message|>
341
  {%- endif -%}