2024-06-27 21:15:17 +00:00
|
|
|
{{- if .Messages }}
|
|
|
|
{{- if .System }}{{ .System }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
{{- range .Messages }}
|
|
|
|
{{- if eq .Role "user" }}### Instruction
|
|
|
|
{{ .Content }}
|
|
|
|
|
|
|
|
{{ else if eq .Role "assistant" }}### Response
|
|
|
|
{{ .Content }}<|endoftext|>
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
{{- end }}### Response
|
|
|
|
{{ else }}
|
2024-06-03 18:06:29 +00:00
|
|
|
{{ if .System }}{{ .System }}
|
|
|
|
|
|
|
|
{{ end }}{{ if .Prompt }}### Instruction
|
|
|
|
{{ .Prompt }}
|
|
|
|
|
|
|
|
|
|
|
|
{{ end }}### Response
|
|
|
|
{{ .Response }}<|endoftext|>
|
|
|
|
|
2024-06-27 21:15:17 +00:00
|
|
|
{{- end }}
|