2024-06-27 21:15:17 +00:00
|
|
|
{{- if .Messages }}
|
|
|
|
{{- if .System }}<|start_header_id|>system<|end_header_id|>
|
|
|
|
|
|
|
|
{{ .System }}<|eot_id|>
|
|
|
|
{{- end }}
|
|
|
|
{{- range .Messages }}<|start_header_id|>{{ .Role }}<|end_header_id|>
|
|
|
|
|
|
|
|
{{ .Content }}<|eot_id|>
|
|
|
|
{{- end }}<|start_header_id|>assistant<|end_header_id|>
|
|
|
|
|
|
|
|
{{ else }}
|
2024-06-03 18:06:29 +00:00
|
|
|
{{ if .System }}<|start_header_id|>system<|end_header_id|>
|
|
|
|
|
|
|
|
{{ .System }}<|eot_id|>{{ end }}{{ if .Prompt }}<|start_header_id|>user<|end_header_id|>
|
|
|
|
|
|
|
|
{{ .Prompt }}<|eot_id|>{{ end }}<|start_header_id|>assistant<|end_header_id|>
|
|
|
|
|
2024-06-27 21:15:17 +00:00
|
|
|
{{ .Response }}<|eot_id|>
|
|
|
|
{{- end }}
|