Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

show: no template system if empty

Michael Yangee4979e5102c
diff --git a/server/images.go b/server/images.go
index 380ddb10e..d6b53afa6 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 {