From 5e5037f10d87510e76cff558d1048cfae01a4828 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Tue, 23 Jul 2024 10:42:51 +0200 Subject: [PATCH] feat(p2p): warn the user to start with --p2p (#2993) Signed-off-by: Ettore Di Giacinto --- core/http/views/p2p.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/core/http/views/p2p.html b/core/http/views/p2p.html index 0396924e..a8c51310 100644 --- a/core/http/views/p2p.html +++ b/core/http/views/p2p.html @@ -16,7 +16,16 @@
LocalAI uses P2P technologies to enable distribution of work between peers. It is possible to share an instance with Federation and/or split the weights of a model across peers (only available with llama.cpp models). You can now share computational resources between your devices or your friends!
- + + {{ if and .IsP2PEnabled (eq .P2PToken "") }} +
+

Warning: P2P mode is disabled or no token was specified

+

You have to enable P2P mode by starting LocalAI with --p2p. Please restart the server with --p2p to generate a new token automatically that can be used to automatically discover other nodes. If you already have a token specify it with export TOKEN=".." + Check out the documentation for more information. +

+
+ {{ else }} +
@@ -128,7 +137,8 @@
- + + {{ end }}