mirror of
https://github.com/Pythagora-io/gpt-pilot.git
synced 2026-01-09 13:17:55 -05:00
Re-enable stream end tags for new listener setup
This commit is contained in:
@@ -346,7 +346,7 @@ class IPCServer:
|
||||
await self._add_to_chat_history(project_state_id, convo, message, str(response))
|
||||
|
||||
# Send final message
|
||||
# await send_stream_chunk(writer, message_type, None, request_id)
|
||||
await send_stream_chunk(writer, message_type, None, request_id)
|
||||
|
||||
except (ConnectionResetError, BrokenPipeError) as err:
|
||||
log.error(f"Failed to send streaming response: {err}", exc_info=True)
|
||||
|
||||
@@ -228,7 +228,7 @@ class IPCClientUI(UIBase):
|
||||
return
|
||||
|
||||
if chunk is None:
|
||||
chunk = "\n" # end of stream
|
||||
chunk = "<__stream_end__>" # end of stream
|
||||
|
||||
await self._send(
|
||||
MessageType.STREAM,
|
||||
|
||||
Reference in New Issue
Block a user