mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
feat: The response.incomplete event is not handled when using stream_mode=['messages'] (#33871)
This commit is contained in:
@@ -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,
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user