Skip to content

Conversation

@hmellor
Copy link
Member

@hmellor hmellor commented Sep 24, 2025

Reinstates backward compatiblility for the following APIs removed by #22772:

  • Protocols for CompletionRequest and ChatCompletionRequest
  • Forward any deprecated fields to structured_outputs
  • Add a warning at the top of the Structured Ouptuts feature doc telling people to update

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds backward compatibility for deprecated guided_* API parameters by re-introducing them and forwarding their values to the new structured_outputs parameter. The changes are mostly correct, but I found a critical issue that would cause a TypeError at runtime due to an incorrect parameter being passed to StructuredOutputsParams. Additionally, there's an inconsistency where structural_tag is not handled for CompletionRequest, which I've also pointed out.

Signed-off-by: Harry Mellor <[email protected]>
@hmellor hmellor added this to the v0.11.0 milestone Sep 24, 2025
@DarkLight1337 DarkLight1337 added the ready ONLY add when PR is ready to merge/full CI is needed label Sep 25, 2025
@aarnphm
Copy link
Collaborator

aarnphm commented Sep 25, 2025

Let's also wait 3.9 EOL before merging this PR.

@DarkLight1337
Copy link
Member

How is that related?

@aarnphm
Copy link
Collaborator

aarnphm commented Sep 25, 2025

How is that related?

dict[str, Any](... afaict this is 3.10+?

@DarkLight1337
Copy link
Member

No, that has been supported since Python 3.9 (PEP 585)

@DarkLight1337 DarkLight1337 merged commit 70fbdb2 into vllm-project:main Sep 25, 2025
43 checks passed
@hmellor hmellor deleted the guided-api-bc branch September 25, 2025 17:13
Zhuul pushed a commit to Zhuul/vllm that referenced this pull request Sep 26, 2025
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Cyrus Leung <[email protected]>
Co-authored-by: Cyrus Leung <[email protected]>
yewentao256 pushed a commit that referenced this pull request Oct 3, 2025
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Cyrus Leung <[email protected]>
Co-authored-by: Cyrus Leung <[email protected]>
Signed-off-by: yewentao256 <[email protected]>
xuebwang-amd pushed a commit to xuebwang-amd/vllm that referenced this pull request Oct 10, 2025
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Cyrus Leung <[email protected]>
Co-authored-by: Cyrus Leung <[email protected]>
Signed-off-by: xuebwang-amd <[email protected]>
choprahetarth pushed a commit to Tandemn-Labs/vllm that referenced this pull request Oct 11, 2025
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Cyrus Leung <[email protected]>
Co-authored-by: Cyrus Leung <[email protected]>
lywa1998 pushed a commit to lywa1998/vllm that referenced this pull request Oct 20, 2025
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Cyrus Leung <[email protected]>
Co-authored-by: Cyrus Leung <[email protected]>
xuebwang-amd pushed a commit to xuebwang-amd/vllm that referenced this pull request Oct 24, 2025
Signed-off-by: Harry Mellor <[email protected]>
Signed-off-by: Cyrus Leung <[email protected]>
Co-authored-by: Cyrus Leung <[email protected]>
Signed-off-by: xuebwang-amd <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation frontend ready ONLY add when PR is ready to merge/full CI is needed structured-output

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants