Repository navigation
Rename router type sglang to smg - #4371
Merged
Merged
Conversation
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>
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.
The replica group router
type: sglangruns the Shepherd Model Gateway (SMG), so rename the value tosmgand the enum member toRouterType.SMG.ReplicaGroupRouterConfig.typeis now typed asRouterTypeinstead of aLiteralduplicating its values.sglangis accepted as an alias indefinitely, since run specs stored in the DB and older clients' requests use it.Until 0.23.0,
smgis serialized to JSON assglang, since servers and clients < 0.22.4 rejectsmg. 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].routerto the service reference. Blog posts are left as is.