Spaces:
Paused
Paused
:zap: [Enhance] Remove unnecessary empty delta for NotImplemented message type
Browse files
conversations/conversation_connector.py
CHANGED
@@ -102,7 +102,8 @@ class ConversationConnector:
|
|
102 |
for item in output:
|
103 |
yield item
|
104 |
else:
|
105 |
-
|
|
|
106 |
else:
|
107 |
message_parser.parse(data)
|
108 |
# Stream: List of all messages in the whole conversation
|
|
|
102 |
for item in output:
|
103 |
yield item
|
104 |
else:
|
105 |
+
if output:
|
106 |
+
yield output
|
107 |
else:
|
108 |
message_parser.parse(data)
|
109 |
# Stream: List of all messages in the whole conversation
|
networks/message_parser.py
CHANGED
@@ -85,4 +85,4 @@ class MessageParser:
|
|
85 |
f"Not Supported Message Type: {message_type}"
|
86 |
)
|
87 |
|
88 |
-
return
|
|
|
85 |
f"Not Supported Message Type: {message_type}"
|
86 |
)
|
87 |
|
88 |
+
return None
|