mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-11 16:26:59 +00:00
show: no template system if empty
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user