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