update named templates

This commit is contained in:
Michael Yang
2024-06-27 14:15:17 -07:00
parent 326363b3a7
commit fb6cbc02fb
75 changed files with 611 additions and 27 deletions

View File

@@ -1,3 +1,17 @@
{{- if .Messages }}
{{- if .System }}{{ .System }}
{{ end }}
{{- range .Messages }}
{{- if eq .Role "user" }}### Instruction
{{ .Content }}
{{ else if eq .Role "assistant" }}### Response
{{ .Content }}<|endoftext|>
{{ end }}
{{- end }}### Response
{{ else }}
{{ if .System }}{{ .System }}
{{ end }}{{ if .Prompt }}### Instruction
@@ -7,3 +21,4 @@
{{ end }}### Response
{{ .Response }}<|endoftext|>
{{- end }}