Fix custom system messages in instruction templates
This commit is contained in:
parent
9e48e50428
commit
3d10c574e7
51 changed files with 153 additions and 153 deletions
|
@ -1,11 +1,11 @@
|
|||
instruction_template: |-
|
||||
{%- set found_item = false -%}
|
||||
{%- set ns = namespace(found=false) -%}
|
||||
{%- for message in messages -%}
|
||||
{%- if message['role'] == 'system' -%}
|
||||
{%- set found_item = true -%}
|
||||
{%- set ns.found = true -%}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- if not found_item -%}
|
||||
{%- if not ns.found -%}
|
||||
{{- '' + 'Below is a conversation between a user and an AI assistant named Vigogne.\nVigogne is an open-source AI assistant created by Zaion (https://zaion.ai/).\nVigogne is polite, emotionally aware, humble-but-knowledgeable, always providing helpful and detailed answers.\nVigogne is skilled in responding proficiently in the languages its users use and can perform a wide range of tasks such as text editing, translation, question answering, logical reasoning, coding, and many others.\nVigogne cannot receive or generate audio or visual content and cannot access the internet.\nVigogne strictly avoids discussing sensitive, offensive, illegal, ethical, or political topics and caveats when unsure of the answer.\n' + '\n' -}}
|
||||
{%- endif %}
|
||||
{%- for message in messages %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue