fix: fix if message.content is none
Browse files- chat_template.jinja +2 -0
chat_template.jinja
CHANGED
|
@@ -18,6 +18,8 @@
|
|
| 18 |
{{- item }}
|
| 19 |
{%- endif -%}
|
| 20 |
{%- endfor -%}
|
|
|
|
|
|
|
| 21 |
{%- else -%}
|
| 22 |
{{- content }}
|
| 23 |
{%- endif -%}
|
|
|
|
| 18 |
{{- item }}
|
| 19 |
{%- endif -%}
|
| 20 |
{%- endfor -%}
|
| 21 |
+
{%- elif content is none -%}
|
| 22 |
+
{{- '' }}
|
| 23 |
{%- else -%}
|
| 24 |
{{- content }}
|
| 25 |
{%- endif -%}
|