"tests/vscode:/vscode.git/clone" did not exist on "7f1a5e080bd5cd63bfe5fca8f0bb0bd48aa7573c"
Unverified Commit 2687f02c authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #4265 from ollama/mxyng/fix-show-llava

routes: fix show llava models
parents 001f167a 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: "template", Name: "adapter",
Args: m.Template, Args: adapter,
}) })
} }
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: "adapter", Name: "template",
Args: adapter, Args: m.Template,
}) })
} }
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,
}) })
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment