How to determine if streaming output has ended? #350

Closed
opened 2026-02-21 17:26:53 -05:00 by yindo · 1 comment
Owner

Originally created by @conghaoyuan on GitHub (Aug 7, 2023).

data: {"event": "message", "task_id": "5c3c15db-3751-494d-a93c-9bc6ccd15217", "id": "8d0973b8-7e3b-4714-b571-00ac109ed9c3", "answer": " language", "created_at": 1691406195, "conversation_id": "9026e291-57d9-438a-9655-f10f3e87360d"}

data: {"event": "message", "task_id": "5c3c15db-3751-494d-a93c-9bc6ccd15217", "id": "8d0973b8-7e3b-4714-b571-00ac109ed9c3", "answer": ".", "created_at": 1691406195, "conversation_id": "9026e291-57d9-438a-9655-f10f3e87360d"}

data: {"event": "message", "task_id": "5c3c15db-3751-494d-a93c-9bc6ccd15217", "id": "8d0973b8-7e3b-4714-b571-00ac109ed9c3", "answer": "", "created_at": 1691406195, "conversation_id": "9026e291-57d9-438a-9655-f10f3e87360d"}

Originally created by @conghaoyuan on GitHub (Aug 7, 2023). data: {"event": "message", "task_id": "5c3c15db-3751-494d-a93c-9bc6ccd15217", "id": "8d0973b8-7e3b-4714-b571-00ac109ed9c3", "answer": " language", "created_at": 1691406195, "conversation_id": "9026e291-57d9-438a-9655-f10f3e87360d"} data: {"event": "message", "task_id": "5c3c15db-3751-494d-a93c-9bc6ccd15217", "id": "8d0973b8-7e3b-4714-b571-00ac109ed9c3", "answer": ".", "created_at": 1691406195, "conversation_id": "9026e291-57d9-438a-9655-f10f3e87360d"} data: {"event": "message", "task_id": "5c3c15db-3751-494d-a93c-9bc6ccd15217", "id": "8d0973b8-7e3b-4714-b571-00ac109ed9c3", "answer": "", "created_at": 1691406195, "conversation_id": "9026e291-57d9-438a-9655-f10f3e87360d"}
yindo closed this issue 2026-02-21 17:26:53 -05:00
Author
Owner

@crazywoola commented on GitHub (Aug 7, 2023):

If you are using nodejs, there will be a end event. If you are using python try this link

@crazywoola commented on GitHub (Aug 7, 2023): If you are using nodejs, there will be a `end` event. If you are using python try this [link](https://stackoverflow.com/a/29781745/1478095)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#350