mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-12 00:37:04 +00:00
Merge pull request #826 from jmorganca/mxyng/template-system
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