2024-06-27 21:15:17 +00:00
|
|
|
{{- if .Messages }}
|
|
|
|
{{- if .System }}System:
|
|
|
|
{{ .System }}
|
|
|
|
|
|
|
|
{{ end }}
|
|
|
|
{{- range .Messages }}
|
|
|
|
{{- if eq .Role "user" }}Question:
|
|
|
|
{{- else if eq .Role "assistant" }}Answer:
|
|
|
|
{{- end }}
|
|
|
|
{{ .Content }}
|
|
|
|
|
|
|
|
{{ end }}Answer:
|
2024-07-10 18:00:29 +00:00
|
|
|
{{ else -}}
|
|
|
|
{{ if .System }}System:
|
2024-06-03 18:06:29 +00:00
|
|
|
{{ .System }}
|
|
|
|
|
|
|
|
{{ end }}{{ if .Prompt }}Question:
|
|
|
|
{{ .Prompt }}
|
|
|
|
|
|
|
|
{{ end }}Answer:
|
2024-06-27 21:15:17 +00:00
|
|
|
{{ .Response }}
|
2024-07-10 18:00:29 +00:00
|
|
|
|
|
|
|
{{ end -}}
|