Skip to content

Commit 9bcf4c5

Browse files
authored
fix(backends gallery): propagate p2p settings to correctly draw menu (#5684)
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent 3fcfaec commit 9bcf4c5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/http/routes/ui_backend_gallery.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"github.com/mudler/LocalAI/core/gallery"
1616
"github.com/mudler/LocalAI/core/http/elements"
1717
"github.com/mudler/LocalAI/core/http/utils"
18+
"github.com/mudler/LocalAI/core/p2p"
1819
"github.com/mudler/LocalAI/core/services"
1920
"github.com/mudler/LocalAI/internal"
2021
"github.com/rs/zerolog/log"
@@ -70,6 +71,7 @@ func registerBackendGalleryRoutes(app *fiber.App, appConfig *config.ApplicationC
7071
"ProcessingBackends": processingBackendsData,
7172
"AvailableBackends": len(backends),
7273
"TaskTypes": taskTypes,
74+
"IsP2PEnabled": p2p.IsP2PEnabled(),
7375
}
7476

7577
if page == "" {

0 commit comments

Comments
 (0)