feat(ui): add Router Agent and cluster management - #5380
Open
m199369309 wants to merge 31 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces the Token Router feature to Xinference, adding systemd services, frontend UI management pages, and backend SQLite-backed stores for router configurations, deployments, and node assignments. It also integrates token-aware routing into the chat completion API. The code review identified several critical issues: a race condition in the cluster info polling timer, a bug in the assignment store that silently overwrites metadata, an inefficient creation of httpx.AsyncClient on every request, and potential unhandled exceptions during process termination in the agent process manager.
m199369309
force-pushed
the
feat/router-agent-cluster-ui
branch
3 times, most recently
from
August 18, 2026 18:08
8531b5b to
a1c46f2
Compare
…deepseek-tokenizer-asset # Conflicts: # xinference/core/supervisor.py
…agent-orchestration # Conflicts: # xinference/api/tests/test_token_router_api.py # xinference/core/supervisor.py # xinference/router/app.py
…agent-orchestration
This was referenced Aug 20, 2026
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.
Summary
Dependency
Depends on #5378
Depends on #5379
This PR intentionally targets
main; maintainers can merge it after the dependencies above are merged.Validation
npm cinpm run lint(passes with existing repository warnings only)npm run build(passes;/token-routerexported successfully)Please review now if convenient, but merge only after the dependency PRs have landed.