diff --git a/core/http/endpoints/localai/welcome.go b/core/http/endpoints/localai/welcome.go index b9c7a573..5d217173 100644 --- a/core/http/endpoints/localai/welcome.go +++ b/core/http/endpoints/localai/welcome.go @@ -29,10 +29,18 @@ func WelcomeEndpoint(appConfig *config.ApplicationConfig, // Get model statuses to display in the UI the operation in progress processingModels, taskTypes := modelStatus() + modelsWithoutConfig := []string{} + + for _, m := range models { + if _, ok := galleryConfigs[m]; !ok { + modelsWithoutConfig = append(modelsWithoutConfig, m) + } + } + summary := fiber.Map{ "Title": "LocalAI API - " + internal.PrintableVersion(), "Version": internal.PrintableVersion(), - "Models": models, + "Models": modelsWithoutConfig, "ModelsConfig": backendConfigs, "GalleryConfig": galleryConfigs, "IsP2PEnabled": p2p.IsP2PEnabled(), diff --git a/core/http/views/index.html b/core/http/views/index.html index e2cbfe03..26cc056a 100644 --- a/core/http/views/index.html +++ b/core/http/views/index.html @@ -17,15 +17,26 @@
..install something from the 🖼️ Gallery or check the Getting started documentation
+ + {{ if ne (len .Models) 0 }} +We have {{len .ModelsConfig}} pre-loaded models available.
+ {{ $modelsN := len .ModelsConfig}} + {{ $modelsN = add $modelsN (len .Models)}} +
+ |
+
+ {{.}} + |
+ + + auto + + | + ++ + No Configuration + + | + {{end}}