From b25976aeb8542d56f48bcb97003b256cba0f6237 Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Wed, 8 May 2024 12:42:48 -0700 Subject: [PATCH] routes: fix show llava models --- server/images.go | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/server/images.go b/server/images.go index a96db8d1..2be1d366 100644 --- a/server/images.go +++ b/server/images.go @@ -68,6 +68,20 @@ func (m *Model) String() string { Args: m.ModelPath, }) + for _, adapter := range m.AdapterPaths { + modelfile.Commands = append(modelfile.Commands, model.Command{ + Name: "adapter", + Args: adapter, + }) + } + + for _, projector := range m.ProjectorPaths { + modelfile.Commands = append(modelfile.Commands, model.Command{ + Name: "model", + Args: projector, + }) + } + if m.Template != "" { modelfile.Commands = append(modelfile.Commands, model.Command{ Name: "template", @@ -82,20 +96,6 @@ func (m *Model) String() string { }) } - for _, adapter := range m.AdapterPaths { - modelfile.Commands = append(modelfile.Commands, model.Command{ - Name: "adapter", - Args: adapter, - }) - } - - for _, projector := range m.ProjectorPaths { - modelfile.Commands = append(modelfile.Commands, model.Command{ - Name: "projector", - Args: projector, - }) - } - for k, v := range m.Options { switch v := v.(type) { case []any: