LocalAI icon indicating copy to clipboard operation
LocalAI copied to clipboard

feat(p2p): add support for configuration of edgevpn listen_maddrs, dht_announce_maddrs and bootstrap_peers

Open mintyleaf opened this issue 1 year ago • 2 comments

Description

  • Add the P2P env configuration flags of the new [email protected] features (listen and announce maddrs)
  • Add the bootstrap peer configuration flag
  • Rename libp2p loglevel to the same LOCALAI_P2P_* prefix (LOCALAI_P2P_LIB_LOGLEVEL) to avoid possible confusion in conjunction with LOCALAI_P2P_LOGLEVEL flag (and possibly simplify the future factoring of this options)

Notes for Reviewers

Signed commits

  • [ ] Yes, I signed my commits.

mintyleaf avatar Nov 19 '24 17:11 mintyleaf

Deploy Preview for localai ready!

Name Link
Latest commit 181eaa30e80c59f6edaa67e87d75989964cb7c47
Latest deploy log https://app.netlify.com/sites/localai/deploys/673db013c493be000860c9de
Deploy Preview https://deploy-preview-4200--localai.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Nov 19 '24 17:11 netlify[bot]

@mudler keep in mind that edgevpn dependency needs to be updated to v0.28.4 for it to work
I guess the builders will fail because of that

I don't get how that fancy chore workflow system works and if i can bump deps by myself Having that - i updated it and checked locally

mintyleaf avatar Nov 19 '24 17:11 mintyleaf

@mudler keep in mind that edgevpn dependency needs to be updated to v0.28.4 for it to work I guess the builders will fail because of that

I don't get how that fancy chore workflow system works and if i can bump deps by myself Having that - i updated it and checked locally

Just pushed in the branch the bump. For future reference, the command that I had to run is: go get github.com/mudler/[email protected]

mudler avatar Nov 20 '24 09:11 mudler

go get github.com/mudler/[email protected]

in order to build this i needed to do

go get github.com/mudler/[email protected]
   go get github.com/schollz/progressbar/[email protected]
   go get github.com/mudler/LocalAI/core/http
   go get github.com/mudler/LocalAI/core/gallery

+ i'm aware of some fancy localai-bot deps update automatization, so i was confused and wasn't sure if it's ok to update them like this manually

mintyleaf avatar Nov 20 '24 16:11 mintyleaf