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
b25976ae
Commit
b25976ae
authored
May 08, 2024
by
Michael Yang
Browse files
routes: fix show llava models
parent
001f167a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
server/images.go
server/images.go
+12
-12
No files found.
server/images.go
View file @
b25976ae
...
@@ -68,31 +68,31 @@ func (m *Model) String() string {
...
@@ -68,31 +68,31 @@ func (m *Model) String() string {
Args
:
m
.
ModelPath
,
Args
:
m
.
ModelPath
,
})
})
if
m
.
Template
!=
""
{
for
_
,
adapter
:=
range
m
.
AdapterPaths
{
modelfile
.
Commands
=
append
(
modelfile
.
Commands
,
model
.
Command
{
modelfile
.
Commands
=
append
(
modelfile
.
Commands
,
model
.
Command
{
Name
:
"
templa
te"
,
Name
:
"
adap
te
r
"
,
Args
:
m
.
Templa
te
,
Args
:
adap
te
r
,
})
})
}
}
if
m
.
System
!=
""
{
for
_
,
projector
:=
range
m
.
ProjectorPaths
{
modelfile
.
Commands
=
append
(
modelfile
.
Commands
,
model
.
Command
{
modelfile
.
Commands
=
append
(
modelfile
.
Commands
,
model
.
Command
{
Name
:
"
system
"
,
Name
:
"
model
"
,
Args
:
m
.
System
,
Args
:
projector
,
})
})
}
}
for
_
,
adapter
:=
range
m
.
AdapterPaths
{
if
m
.
Template
!=
""
{
modelfile
.
Commands
=
append
(
modelfile
.
Commands
,
model
.
Command
{
modelfile
.
Commands
=
append
(
modelfile
.
Commands
,
model
.
Command
{
Name
:
"
adap
te
r
"
,
Name
:
"
templa
te"
,
Args
:
adap
te
r
,
Args
:
m
.
Templa
te
,
})
})
}
}
for
_
,
projector
:=
range
m
.
ProjectorPaths
{
if
m
.
System
!=
""
{
modelfile
.
Commands
=
append
(
modelfile
.
Commands
,
model
.
Command
{
modelfile
.
Commands
=
append
(
modelfile
.
Commands
,
model
.
Command
{
Name
:
"
projector
"
,
Name
:
"
system
"
,
Args
:
projector
,
Args
:
m
.
System
,
})
})
}
}
...
...
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