show: no template system if empty

This commit is contained in:
Michael Yang 2023-10-17 15:25:43 -07:00
parent 08b0e04f40
commit ee4979e510

View file

@ -951,7 +951,10 @@ func ShowModelfile(model *Model) (string, error) {
FROM {{ .From }}
TEMPLATE """{{ .Template }}"""
{{- if .System }}
SYSTEM """{{ .System }}"""
{{- end }}
{{ .Params }}
`
for _, l := range mt.Model.AdapterPaths {