ollama/template/falcon-instruct.gotmpl

13 lines
338 B
Go Template
Raw Normal View History

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" }}Falcon:
{{ end }}{{ .Content }}
{{ end }}Falcon:
{{ else }}
2024-06-03 18:06:29 +00:00
{{ if .System }}{{ .System }}
{{ end }}{{ if .Prompt }}User: {{ .Prompt }}
2024-06-27 21:15:17 +00:00
{{ end }}Assistant: {{ .Response }}
{{- end }}