Fixed invalid Jinja2 syntax in instruction templates (#4911)

This commit is contained in:
Ixion 2023-12-13 20:46:23 +02:00 committed by GitHub
parent 4eeac70af7
commit 3f3960dbfb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 17 additions and 14 deletions

View file

@ -6,7 +6,7 @@ instruction_template: |-
{%- endif -%}
{%- endfor -%}
{%- if not found_item -%}
{{- '' + 'A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human's questions.' + '\n\n' -}}
{{- '' + 'A chat between a curious human and an artificial intelligence assistant. The assistant gives helpful, detailed, and polite answers to the human\'s questions.' + '\n\n' -}}
{%- endif %}
{%- for message in messages %}
{%- if message['role'] == 'system' -%}