[Refactor] Extract StructuredOutputsParams creation logic from Request.to_sampling_params - #49003
Merged
vllm-bot merged 1 commit intoJul 19, 2026
Conversation
yzong-rh
marked this pull request as ready for review
July 18, 2026 02:10
yzong-rh
requested review from
AndreasKaratzas,
DarkLight1337,
NickLucche,
aarnphm,
chaunceyjiang,
robertgshaw2-redhat and
russellb
as code owners
July 18, 2026 02:10
Contributor
Author
DarkLight1337
approved these changes
Jul 18, 2026
DarkLight1337
left a comment
Member
There was a problem hiding this comment.
Thanks for the cleanup!
DarkLight1337
enabled auto-merge (squash)
July 18, 2026 06:31
Contributor
Author
ArjunPakhan
pushed a commit
to ArjunPakhan/vllm
that referenced
this pull request
Jul 21, 2026
…t.to_sampling_params (vllm-project#49003) Signed-off-by: Yifan Zong <yzong@redhat.com>
aarushjain29
pushed a commit
to ROCm/vllm
that referenced
this pull request
Jul 21, 2026
…t.to_sampling_params (vllm-project#49003) Signed-off-by: Yifan Zong <yzong@redhat.com> Signed-off-by: aarushjain29 <Aarushi.Jain2@amd.com>
edwinlim0919
pushed a commit
to chaeminlim-mb/vllm
that referenced
this pull request
Jul 29, 2026
…t.to_sampling_params (vllm-project#49003) Signed-off-by: Yifan Zong <yzong@redhat.com>
itej89
pushed a commit
to itej89/vllm
that referenced
this pull request
Aug 4, 2026
…t.to_sampling_params (vllm-project#49003) Signed-off-by: Yifan Zong <yzong@redhat.com> Signed-off-by: Tej Kiran <kiran.tej@amd.com>
aditi-amd
pushed a commit
to aditi-amd/vllm
that referenced
this pull request
Aug 4, 2026
…t.to_sampling_params (vllm-project#49003) Signed-off-by: Yifan Zong <yzong@redhat.com> Signed-off-by: root <root@smci355-ccs-aus-m02-09.cs-aus.dcgpu>
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.

Purpose
Add
extract_structured_outputs()helpers that normalize a request'sStructuredOutputsParamsbefore building sampling params.Facilitate future
Parser.adjust_request()implementation of #48116 and #45560 by consolidating theStructuredOutputsParamsextraction logic.Deduplicate the structured-output normalization logic between the Chat Completions and Completions request paths.
Fix missing
json_objectsupport for the Responses API by mappingtext.format={"type": "json_object"}into structured outputs.No other behavioral change.
Test Plan
Unit tests:
Test Result
Essential Elements of an Effective PR Description Checklist
supported_models.mdandexamplesfor a new model.