Update the example template
This commit is contained in:
parent
3d10c574e7
commit
a23a004434
2 changed files with 4 additions and 4 deletions
|
@ -26,13 +26,13 @@ character: Assistant
|
|||
name1: You
|
||||
custom_system_message: ''
|
||||
instruction_template_str: |-
|
||||
{%- 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 an instruction that describes a task. Write a response that appropriately completes the request.' + '\n\n' -}}
|
||||
{%- endif %}
|
||||
{%- for message in messages %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue