From aed541def40c127c8d3c1ec72d7f8e99bd58851a Mon Sep 17 00:00:00 2001 From: Aman Paswan <145833605+aman0603@users.noreply.github.com> Date: Tue, 30 Jun 2026 13:25:14 +0530 Subject: [PATCH] [Bugfix][Responses] Set completed status for Harmony function calls (#46945) Signed-off-by: amanambak Co-authored-by: amanambak Co-authored-by: Chauncey --- tests/entrypoints/openai/responses/test_harmony_utils.py | 1 + vllm/entrypoints/openai/responses/harmony.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/entrypoints/openai/responses/test_harmony_utils.py b/tests/entrypoints/openai/responses/test_harmony_utils.py index f1434ce2bd..07bc43d99c 100644 --- a/tests/entrypoints/openai/responses/test_harmony_utils.py +++ b/tests/entrypoints/openai/responses/test_harmony_utils.py @@ -142,6 +142,7 @@ class TestHarmonyToResponseOutput: ) assert output_items[0].call_id.startswith("call_") assert output_items[0].id.startswith("fc_") + assert output_items[0].status == "completed" def test_commentary_with_python_recipient_creates_reasoning(self): """Test that commentary with recipient='python' creates reasoning items.""" diff --git a/vllm/entrypoints/openai/responses/harmony.py b/vllm/entrypoints/openai/responses/harmony.py index 562b1d201e..332496f0f7 100644 --- a/vllm/entrypoints/openai/responses/harmony.py +++ b/vllm/entrypoints/openai/responses/harmony.py @@ -318,6 +318,7 @@ def _parse_function_call(message: Message, recipient: str) -> list[ResponseOutpu type="function_call", name=function_name, id=f"fc_{random_id}", + status="completed", ) output_items.append(response_item) return output_items