Skip to content

Conversation

@qandrew
Copy link
Contributor

@qandrew qandrew commented Nov 8, 2025

Purpose

append_output currently does two things, it takes an input from the engine (as type RequestOutput) and it takes input from a MCP tool call. These are two fundamentally different functions, so this PR separates them. No functional changes expected.

Test Plan

Test Result

This passes
pytest -sv tests/entrypoints/openai/test_response_api_with_harmony.py::test_function_calling_multi_turn

Signed-off-by: Andrew Xia <axia@fb.com>
@mergify mergify bot added frontend gpt-oss Related to GPT-OSS models labels Nov 8, 2025
@qandrew qandrew marked this pull request as ready for review November 8, 2025 00:42
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines 81 to 88
class ConversationContext(ABC):
@abstractmethod
def append_output(self, output) -> None:
def append_output(self, output: RequestOutput) -> None:
pass

@abstractmethod
def append_tool_output(self, output) -> None:
pass

Choose a reason for hiding this comment

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

P1 Badge Add required append_tool_output implementation for test mock

The commit introduces a new abstract method append_tool_output on ConversationContext but only adds concrete implementations for the production contexts. tests/entrypoints/openai/test_serving_responses.py still defines MockConversationContext without overriding this method, so constructing the mock (MockConversationContext()) now raises TypeError: Can't instantiate abstract class … with abstract method append_tool_output and the test suite fails before any assertions run. Please add a stub implementation to the mock or adjust the base class contract.

Useful? React with 👍 / 👎.

Signed-off-by: Andrew Xia <axia@fb.com>
@github-project-automation github-project-automation bot moved this from To Triage to Ready in gpt-oss Issues & Enhancements Nov 12, 2025
@yeqcharlotte yeqcharlotte enabled auto-merge (squash) November 12, 2025 18:56
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Nov 12, 2025
@yeqcharlotte yeqcharlotte merged commit 7c38ed0 into vllm-project:main Nov 13, 2025
48 checks passed
geodavic pushed a commit to geodavic/vllm that referenced this pull request Nov 16, 2025
Signed-off-by: Andrew Xia <axia@fb.com>
Co-authored-by: Andrew Xia <axia@fb.com>
Signed-off-by: George D. Torres <gdavtor@gmail.com>
bwasti pushed a commit to bwasti/vllm that referenced this pull request Nov 17, 2025
Signed-off-by: Andrew Xia <axia@fb.com>
Co-authored-by: Andrew Xia <axia@fb.com>
Signed-off-by: Bram Wasti <bwasti@meta.com>
devpatelio pushed a commit to SumanthRH/vllm that referenced this pull request Nov 29, 2025
Signed-off-by: Andrew Xia <axia@fb.com>
Co-authored-by: Andrew Xia <axia@fb.com>
charlotte12l pushed a commit to charlotte12l/vllm that referenced this pull request Dec 5, 2025
Signed-off-by: Andrew Xia <axia@fb.com>
Co-authored-by: Andrew Xia <axia@fb.com>
Signed-off-by: Xingyu Liu <charlotteliu12x@gmail.com>
Zhathw pushed a commit to Zhathw/vllm that referenced this pull request Dec 6, 2025
Signed-off-by: Andrew Xia <axia@fb.com>
Co-authored-by: Andrew Xia <axia@fb.com>
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

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants