[Bugfix] gpt-oss container tool output bug (#25485)

Signed-off-by: Alec Solder <alecs@fb.com>
Co-authored-by: Alec Solder <alecs@fb.com>
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
Alec S 2025-09-23 16:43:45 -04:00 committed by yewentao256
parent 86e5b73d71
commit d8fda7420a

View File

@ -317,7 +317,8 @@ def parse_output_message(message: Message) -> list[ResponseOutputItem]:
)
output_items.append(response_item)
elif recipient is not None and (recipient.startswith("python")
or recipient.startswith("browser")):
or recipient.startswith("browser")
or recipient.startswith("container")):
for content in message.content:
reasoning_item = ResponseReasoningItem(
id=f"rs_{random_uuid()}",