From ee4979e5102cd4af7fd86f154ea35b6f782684ff Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Tue, 17 Oct 2023 15:25:43 -0700 Subject: [PATCH] show: no template system if empty --- server/images.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/images.go b/server/images.go index 380ddb10..d6b53afa 100644 --- a/server/images.go +++ b/server/images.go @@ -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 {