From 9bcf4c56f1a482bca8ead6ff39ec470b6aa5c8a3 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Wed, 18 Jun 2025 22:06:12 +0200 Subject: [PATCH] fix(backends gallery): propagate p2p settings to correctly draw menu (#5684) Signed-off-by: Ettore Di Giacinto --- core/http/routes/ui_backend_gallery.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/http/routes/ui_backend_gallery.go b/core/http/routes/ui_backend_gallery.go index 4dcc657b..8d69b5da 100644 --- a/core/http/routes/ui_backend_gallery.go +++ b/core/http/routes/ui_backend_gallery.go @@ -15,6 +15,7 @@ import ( "github.com/mudler/LocalAI/core/gallery" "github.com/mudler/LocalAI/core/http/elements" "github.com/mudler/LocalAI/core/http/utils" + "github.com/mudler/LocalAI/core/p2p" "github.com/mudler/LocalAI/core/services" "github.com/mudler/LocalAI/internal" "github.com/rs/zerolog/log" @@ -70,6 +71,7 @@ func registerBackendGalleryRoutes(app *fiber.App, appConfig *config.ApplicationC "ProcessingBackends": processingBackendsData, "AvailableBackends": len(backends), "TaskTypes": taskTypes, + "IsP2PEnabled": p2p.IsP2PEnabled(), } if page == "" {