Skip to content

[Fix] [gpt-oss] fix non-tool calling path for chat completion#24324

Merged
aarnphm merged 11 commits intovllm-project:mainfrom
aarnphm:feat/ux
Sep 6, 2025
Merged

[Fix] [gpt-oss] fix non-tool calling path for chat completion#24324
aarnphm merged 11 commits intovllm-project:mainfrom
aarnphm:feat/ux

Conversation

@aarnphm
Copy link
Collaborator

@aarnphm aarnphm commented Sep 5, 2025

Fixes a regression introduced for support tool calling when non-tool calling path was used

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
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 enables tool usage by default for gpt-oss models, which is a helpful UX improvement. The implementation is mostly correct, but I've pointed out a small refactoring opportunity in serving_chat.py to improve code clarity by avoiding parameter reassignment. The removal of the duplicated self.use_harmony assignment is a good cleanup.

@aarnphm aarnphm changed the title [gpt-oss] enable tools and set tool-parser by default for chat completions [Fix] [gpt-oss] fix non-tool calling path for chat completion Sep 5, 2025
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Copy link
Collaborator

@heheda12345 heheda12345 left a comment

Choose a reason for hiding this comment

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

LGTM!

@heheda12345 heheda12345 enabled auto-merge (squash) September 5, 2025 21:55
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Sep 5, 2025
@aarnphm aarnphm disabled auto-merge September 5, 2025 22:04
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
@aarnphm aarnphm enabled auto-merge (squash) September 5, 2025 22:18
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
@aarnphm aarnphm merged commit fb691ee into vllm-project:main Sep 6, 2025
39 checks passed
@nvpohanh
Copy link
Contributor

nvpohanh commented Sep 8, 2025

@elvischenv please check if this PR fixes #24301 , or do we also need #23440 ? Thanks!

@elvischenv
Copy link
Contributor

It is working on main now. Thanks for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend gpt-oss Related to GPT-OSS models ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants