[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user