mirror of
https://github.com/mudler/LocalAI.git
synced 2025-06-30 06:30:43 +00:00
tmm1's prompt template
This commit is contained in:
parent
c71980ab7c
commit
016df3fc0a
1 changed files with 7 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
{{ if eq .RoleName "user" }} [[INST]] {{ if le .MessageIndex 1 }} <<SYS>>
|
||||
{{ .SystemPrompt}}
|
||||
<</SYS>> {{ end }}
|
||||
{{ .Content }} [/INST]
|
||||
{{ else if eq .RoleName "assistant" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
{{if eq .RoleName "assistant"}}{{.Content}}{{else}}
|
||||
[INST]
|
||||
{{if .SystemPrompt}}{{.SystemPrompt}}{{else if eq .RoleName "system"}}<<SYS>>{{.Content}}<</SYS>>
|
||||
|
||||
{{else if .Content}}{{.Content}}{{end}}
|
||||
[/INST]
|
||||
{{end}}
|
Loading…
Add table
Add a link
Reference in a new issue