You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Failed to parse chat template: 11:16: error: Expected expression, got: '(' {%- if (not loop.first) or (system_message is not none) %} ---^-------
system: Apple M1 Max 32 GB
vesion: v3.6.1
Model: EM German Mistral
{%- set system_message = false %}
{%- if messages[0]['role'] == 'system' %}
{%- set loop_start = 1 %}
{%- set system_message = true %}
{{- messages[0]['content'] }}
{%- else %}
{%- set loop_start = 0 %}
{%- endif %}
{%- for message in messages %}
{%- if loop.index0 >= loop_start %}
{%- if (not loop.first) or (system_message is not none) %}
{{- ' ' }}
{%- endif %}
{%- if message['role'] == 'user' %}
{{- 'USER: ' + message['content'] }}
{%- elif message['role'] == 'assistant' %}
{{- 'ASSISTANT: ' + message['content'] }}
{%- else %}
{{- raise_exception('After the optional system message, conversation roles must be either user or assistant.') }}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- if add_generation_prompt %}
{%- if messages %}
{{- ' ' }}
{%- endif %}
{{- 'ASSISTANT:' }}
{%- endif %}
The text was updated successfully, but these errors were encountered:
Error: Failed to parse chat template: 11:16: error: Expected expression, got: '(' {%- if (not loop.first) or (system_message is not none) %} ---^-------
system: Apple M1 Max 32 GB
vesion: v3.6.1
Model: EM German Mistral
The text was updated successfully, but these errors were encountered: