8 lines
185 B
Go Template
8 lines
185 B
Go Template
{{- range .Messages }}
|
|
{{- if eq .Role "system" }}System:
|
|
{{- else if eq .Role "user" }}Question:
|
|
{{- else if eq .Role "assistant" }}Answer:
|
|
{{- end }}
|
|
{{ .Content }}
|
|
|
|
{{ end }}Answer:
|