[gpt-oss] Add IncompleteDetails to ResponsesRepsonse (#24561)

Signed-off-by: Andrew Xia <axia@meta.com>
This commit is contained in:
Andrew Xia
2025-09-15 13:07:55 -07:00
committed by GitHub
parent 94b03f88dd
commit 25aba2b6a3
7 changed files with 67 additions and 25 deletions

View File

@@ -387,7 +387,9 @@ def parse_remaining_state(
id=f"msg_{random_uuid()}",
content=[output_text],
role="assistant",
status="completed",
# if the parser still has messages (ie if the generator got cut
# abruptly), this should be incomplete
status="incomplete",
type="message",
)
return [text_item]