lvwerra HF staff commited on
Commit
479a7f7
1 Parent(s): 0fd0d1f

Update llama3_template.jinja

Browse files
Files changed (1) hide show
  1. llama3_template.jinja +6 -1
llama3_template.jinja CHANGED
@@ -26,7 +26,12 @@
26
  {{- "Environment: ipython\n" }}
27
  {%- endif %}
28
  {%- if builtin_tools is defined %}
29
- {{- "Tools: " + builtin_tools | reject('equalto', 'code_interpreter') | join(", ") + "\n\n"}}
 
 
 
 
 
30
  {%- endif %}
31
  {{- "Cutting Knowledge Date: December 2023\n" }}
32
  {{- "Today Date: " + date_string + "\n\n" }}
 
26
  {{- "Environment: ipython\n" }}
27
  {%- endif %}
28
  {%- if builtin_tools is defined %}
29
+ {%- set filtered_tools = builtin_tools | reject('equalto', 'code_interpreter') | list %}
30
+ {%- if filtered_tools | length > 0 %}
31
+ {{- "Tools: " + filtered_tools | join(", ") + "\n\n"}}
32
+ {%- else %}
33
+ {{- "\n" }}
34
+ {%- endif %}
35
  {%- endif %}
36
  {{- "Cutting Knowledge Date: December 2023\n" }}
37
  {{- "Today Date: " + date_string + "\n\n" }}