ollama/template/alpaca.gotmpl

19 lines
374 B
Go Template
Raw Normal View History

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