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
commit 940e8ebec3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 {