Text Generation
Transformers
Safetensors
minimax_m2
conversational
custom_code
fp8
rogeryoungh commited on
Commit
08db923
·
verified ·
1 Parent(s): 41ba56e

fix: fix if message.content is none

Browse files
Files changed (1) hide show
  1. 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 -%}