Skip to content

Rename router type sglang to smg - #4371

Merged
un-def merged 1 commit into
masterfrom
pr_rename_sglang_router_to_smg
Oct 15, 2026
Merged

un-def merged 1 commit into
masterfrom
pr_rename_sglang_router_to_smg

Conversation

@un-def

@un-def un-def commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

The replica group router type: sglang runs the Shepherd Model Gateway (SMG), so rename the value to smg and the enum member to RouterType.SMG. ReplicaGroupRouterConfig.type is now typed as RouterType instead of a Literal duplicating its values.

sglang is accepted as an alias indefinitely, since run specs stored in the DB and older clients' requests use it.

Until 0.23.0, smg is serialized to JSON as sglang, since servers and clients < 0.22.4 reject smg. This covers client requests, server responses, and run specs stored in the DB, which older server replicas read during a rolling deployment. Dropping the serializer in 0.23.0 requires patching responses for clients < 0.22.4.

Also rename SGLang router mentions in names, comments, and docs, and add groups[n].router to the service reference. Blog posts are left as is.

The replica group router `type: sglang` runs the Shepherd Model
Gateway (SMG), so rename the value to `smg` and the enum member to
`RouterType.SMG`. `ReplicaGroupRouterConfig.type` is now typed as
`RouterType` instead of a `Literal` duplicating its values.

`sglang` is accepted as an alias indefinitely, since run specs stored
in the DB and older clients' requests use it.

Until 0.23.0, `smg` is serialized to JSON as `sglang`, since servers
and clients < 0.22.4 reject `smg`. This covers client requests,
server responses, and run specs stored in the DB, which older server
replicas read during a rolling deployment. Dropping the serializer in
0.23.0 requires patching responses for clients < 0.22.4.

Also rename SGLang router mentions in names, comments, and docs, and
add `groups[n].router` to the service reference. Blog posts are left
as is.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@un-def
un-def merged commit 397bdb9 into master Oct 15, 2026
26 checks passed
@un-def
un-def deleted the pr_rename_sglang_router_to_smg branch October 15, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant