mirror of
https://github.com/mudler/LocalAI.git
synced 2025-05-22 03:24:59 +00:00
Add token generation for federated server; remove additional P2P setup for federated instance mode
This commit is contained in:
parent
aa7171dd5d
commit
5c35029ae7
3 changed files with 24 additions and 9 deletions
|
@ -138,11 +138,6 @@ func (r *RunCMD) Run(ctx *cliContext.Context) error {
|
|||
}
|
||||
opts = append(opts, config.WithP2PToken(token))
|
||||
|
||||
if r.Federated {
|
||||
p2pCfg.PeerGuard.Autocleanup = true
|
||||
p2pCfg.PeerGuard.PeerGate = true
|
||||
}
|
||||
|
||||
p2pCfg.NetworkToken = token
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue