From 73c9b3598d71b30876b446dd4edf25a9b3ce0e93 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Mon, 19 Aug 2024 19:58:17 +0200 Subject: [PATCH] chore(p2p): make commands easier to copy-paste (#3273) chore(p2p): make box easier to copy-paste Signed-off-by: Ettore Di Giacinto --- core/http/views/p2p.html | 63 ++++++++++++++++++++---------- core/http/views/partials/head.html | 10 +++++ core/p2p/p2p.go | 2 +- 3 files changed, 54 insertions(+), 21 deletions(-) diff --git a/core/http/views/p2p.html b/core/http/views/p2p.html index 80d8ee84..52548e33 100644 --- a/core/http/views/p2p.html +++ b/core/http/views/p2p.html @@ -1,10 +1,9 @@ {{template "views/partials/head" .}} - -
- +
+ {{template "views/partials/navbar" .}}
@@ -26,6 +25,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!
+ +
+

+ Network token + +

+ {{.P2PToken}}
+ The network token can be used to either share the instance or join a federation or a worker network. Below you will find a few examples on how to start a new instance or a worker with the token and you will be able to see the available workers and federated nodes. +
+ {{ if and .IsP2PEnabled (eq .P2PToken "") }}
@@ -50,7 +59,6 @@

Start a federated instance

-
-
- +