[Bugfix][Responses] Set completed status for Harmony function calls (#46945)

Signed-off-by: amanambak <aman.paswan@ambak.com>
Co-authored-by: amanambak <aman.paswan@ambak.com>
Co-authored-by: Chauncey <chaunceyjiang@gmail.com>
This commit is contained in:
Aman Paswan
2026-06-30 07:55:14 +00:00
committed by GitHub
co-authored by amanambak Chauncey
parent 2bc20e8aba
commit aed541def4
2 changed files with 2 additions and 0 deletions
@@ -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."""
@@ -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