[Bugfix] Fix empty channel/recipient in harmony for /v1/responses (#35540)

Signed-off-by: kg6-sleipnir <christopherhazen42@gmail.com>
Signed-off-by: chazen <45186108+kg6-sleipnir@users.noreply.github.com>
Co-authored-by: Chauncey <chaunceyjiang@gmail.com>
This commit is contained in:
chazen
2026-05-12 08:45:51 +00:00
committed by GitHub
co-authored by Chauncey
parent ef34592a1a
commit 7f65f84428
3 changed files with 768 additions and 0 deletions
@@ -175,6 +175,8 @@ def response_input_to_harmony(
Author.new(Role.TOOL, f"functions.{call_response.name}"),
response_msg["output"],
)
msg = msg.with_channel("commentary")
msg = msg.with_recipient("assistant")
elif response_msg["type"] == "reasoning":
content = response_msg.get("content")
if content and len(content) >= 1: