Repository navigation
feat: announce the server on the local network - #1
Merged
Merged
Conversation
avpbynf
force-pushed
the
feat/announce-on-network
branch
from
October 2, 2026 10:07
31d4115 to
49c30b5
Compare
This was referenced Oct 2, 2026
Talk clients had to be given an address by hand. Announcing _talk._tcp over mDNS lets them discover the server on the LAN.
Both launchers passed --port 8000 to uvicorn whatever PORT said, so the setting only applied to python -m rest.main. The network announcement tells clients settings.PORT, which made the two have to agree.
avpbynf
force-pushed
the
feat/announce-on-network
branch
from
October 2, 2026 10:34
49c30b5 to
03da012
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
The server announces itself on the local network over mDNS as
_talk._tcp.local.once its model is loaded, so Talk clients can list it without anyone typing an address. It also answersGET /v1/models, OpenAI-compatible and behind the bearer token, which gives a client a cheap way to tell a refused token from a good one.MDNS_ENABLED=falseturns the announcement off.Why it was not already like that
New. The one fix in the branch is older: the Dockerfile and
make devpassed--port 8000to uvicorn whateverPORTsaid, which only mattered once the announcement started telling clientssettings.PORT.What proves it
ruff check,ruff format --check,mypy restclean, 122 tests green with the coverage floor held. The discovery tests mock zeroconf and the adapters, nothing touches the network.What it leaves owing
Under Docker the announcement only leaves the container with
network_mode: host, which the README says. Container bridges and virtual switches are left out of the record by adapter name, so an unusual virtual adapter could still be announced. Pairing, so a client gets a token without copying it, is the next branch.