show: no template system if empty
This commit is contained in:
parent
08b0e04f40
commit
ee4979e510
1 changed files with 3 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue