Commit b25976ae authored by Michael Yang's avatar Michael Yang
Browse files

routes: fix show llava models

parent 001f167a
...@@ -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