mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-14 06:57:07 +00:00
show: no template system if empty
This commit is contained in:
parent
08b0e04f40
commit
ee4979e510
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user