feat: The response.incomplete event is not handled when using stream_mode=['messages'] (#33871)

This commit is contained in:
riunyfir
2025-11-07 22:46:11 +08:00
committed by GitHub
parent ebfde9173c
commit 1b77a191f4
3 changed files with 21 additions and 1 deletions

View File

@@ -4351,7 +4351,7 @@ def _convert_responses_chunk_to_generation_chunk(
elif chunk.type == "response.created":
id = chunk.response.id
response_metadata["id"] = chunk.response.id # Backwards compatibility
elif chunk.type == "response.completed":
elif chunk.type in ("response.completed", "response.incomplete"):
msg = cast(
AIMessage,
(