Commit ee4979e5 authored by Michael Yang's avatar Michael Yang
Browse files

show: no template system if empty

parent 08b0e04f
...@@ -951,7 +951,10 @@ func ShowModelfile(model *Model) (string, error) { ...@@ -951,7 +951,10 @@ func ShowModelfile(model *Model) (string, error) {
FROM {{ .From }} FROM {{ .From }}
TEMPLATE """{{ .Template }}""" TEMPLATE """{{ .Template }}"""
{{- if .System }}
SYSTEM """{{ .System }}""" SYSTEM """{{ .System }}"""
{{- end }}
{{ .Params }} {{ .Params }}
` `
for _, l := range mt.Model.AdapterPaths { for _, l := range mt.Model.AdapterPaths {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment