2024-06-27 14:15:17 -07:00
|
|
|
{{- if .Messages }}
|
|
|
|
{{- range $index, $_ := .Messages }}
|
|
|
|
{{- if eq .Role "user" }}[INST] {{ if eq $index 0 }}<<SYS>>
|
|
|
|
{{- if $.System }}
|
|
|
|
{{ $.System }}
|
|
|
|
{{ end }}<</SYS>>
|
|
|
|
|
|
|
|
{{ end }}{{ .Content }}
|
|
|
|
{{- else }} [/INST] {{ .Content }}</s><s>
|
|
|
|
{{- end }}
|
|
|
|
{{- end }} [/INST]
|
2024-07-10 11:00:29 -07:00
|
|
|
{{- else -}}
|
|
|
|
[INST] <<SYS>>{{ if .System }}{{ .System }}{{ end }}<</SYS>>
|
2024-06-03 11:06:29 -07:00
|
|
|
|
2024-07-10 11:00:29 -07:00
|
|
|
{{ .Prompt }} [/INST] {{ .Response }}</s>
|
|
|
|
{{- end -}}
|