mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-11 05:27: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 }}
|
||||
TEMPLATE """{{ .Template }}"""
|
||||
|
||||
{{- if .System }}
|
||||
SYSTEM """{{ .System }}"""
|
||||
{{- end }}
|
||||
{{ .Params }}
|
||||
`
|
||||
for _, l := range mt.Model.AdapterPaths {
|
||||
|
Loading…
x
Reference in New Issue
Block a user