Repository navigation
fix(sglang): advertise reasoning gate for multimodal LLM workers (#18… - #18451
Merged
Merged
Conversation
) Signed-off-by: Indrajit Bhosale <[email protected]> (cherry picked from commit 1dd1eef) Signed-off-by: Indrajit Bhosale <[email protected]>
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.
Overview
Cherry-pick #18053 into
release/1.7.0from commit1dd1eefd9d94e2228fbf1caf2e873eb5ca73cf6e.Fix required tool calls with thinking on SGLang workers using
--enable-multimodal --frontend-decoding. These workers use the regular LLM handlers, but missing reasoning-gate metadata made the frontend and engine both expect the reasoning boundary, causing plain-text responses instead of the required tool call.Key Changes
Core logic: 5 added lines, excluding comments and tests.
Validation
Source-PR reproducer on H100 with
Qwen/Qwen3.5-4B, thinking enabled, andtool_choice: "required":The source PR also passed all 11 focused runtime-metadata cases. Reproduction details and controls are recorded in #18054.
For this release backport, the cherry-pick applied without conflicts and its stable patch ID matches the merged main commit. Local lint, formatting, syntax, and whitespace checks passed. Local pytest collection was blocked by an existing vLLM/Transformers
aimv2configuration-registration conflict; the H100 results above are source-PR evidence.Issues and Ongoing Work
Pull Request Checklist
/pr-checklistskill.