mirror of
https://github.com/ollama/ollama.git
synced 2025-03-29 19:22:16 +01:00
11 lines
436 B
Go Template
11 lines
436 B
Go Template
{{- if .Messages }}
|
|
{{- if .System }}GPT Correct System: {{ .System }}<|end_of_turn|>
|
|
{{- end }}
|
|
{{- range .Messages }}GPT Correct
|
|
{{- if eq .Role "user" }} User:
|
|
{{- else if eq .Role "assistant" }} Assistant:
|
|
{{- end }} {{ .Content }}<|end_of_turn|>
|
|
{{- end }}GPT Correct Assistant:
|
|
{{- else }}
|
|
{{ .System }}<|end_of_turn|>GPT4 Correct User: {{ .Prompt }}<|end_of_turn|>GPT4 Correct Assistant: {{ .Response }}<|end_of_turn|>
|
|
{{- end }} |