Merge pull request #826 from jmorganca/mxyng/template-system

show: no template system if empty
This commit is contained in:
Michael Yang
2023-10-18 13:11:09 -07:00
committed by GitHub

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 {