Repository navigation
Conversation
Shi-Dong
marked this pull request as draft
September 27, 2026 02:01
This was referenced Sep 29, 2026
This branch has not been deployed
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
Allow the OpenAI-compatible chat route to forward up to 128 candidate log probabilities per generated token, and preserve the session extensions
input_idsandreturn_meta_infowhen forwarding the request to a worker. This enables clients that record candidate probabilities for score centering while using the SGLang router.The current typed chat request rejects
top_logprobsabove 20 and discards these extensions. The change retains validation of unrelated fields and rejects candidate counts above the backend limit. It vendors the protocol crate so the extended validation and fields can be represented in the router's typed request. I am open to replacing that vendoring with an upstream protocol-crate release if one is available.Verification
main; the rebased tree passesgit diff --check. The Rust suite has not been rerun on this rebased tree.The larger rollout is a separate workload and is not part of this PR's validation.
CI States
Latest PR Test (Base): ✅ Run #36274652162
Latest PR Test (Extra): ❌ Run #36274651967
Latest PR Test (AMD ROCm 10): ➖ No AMD PR run found for this commit.