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 -%}
|
||||
{{- '' + '### Assistant: I am StableVicuna, a large language model created by CarperAI. I am here to chat!' + '\n\n' -}}
|
||||
{%- endif %}
|
||||
{%- for message in messages %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue