Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
ee4979e5
Commit
ee4979e5
authored
Oct 17, 2023
by
Michael Yang
Browse files
show: no template system if empty
parent
08b0e04f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
server/images.go
server/images.go
+3
-0
No files found.
server/images.go
View file @
ee4979e5
...
@@ -951,7 +951,10 @@ func ShowModelfile(model *Model) (string, error) {
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment