Spaces:
Running
Running
Update llama3_template.jinja
Browse files- 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 |
-
{
|
|
|
|
|
|
|
|
|
|
|
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" }}
|