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: