[gpt-oss][1][bugfix] fix streaming final output (#24466)

Signed-off-by: Andrew Xia <axia@meta.com>
This commit is contained in:
Andrew Xia
2025-09-16 12:56:16 -07:00
committed by GitHub
parent dcf2f3ec06
commit 86daa875fe
3 changed files with 91 additions and 5 deletions

View File

@@ -364,6 +364,8 @@ async def test_streaming(client: OpenAI, model_name: str, background: bool):
events.append(event)
assert len(events) > 0
response_completed_event = events[-1]
assert len(response_completed_event.response.output) > 0
if background:
starting_after = 5