Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

Fixing Streamed Output Misalignment

kavena3b300bd1d49
diff --git a/metagpt/utils/stream_pipe.py b/metagpt/utils/stream_pipe.py
index 4c4485158..1cccda7ee 100644
--- a/metagpt/utils/stream_pipe.py
+++ b/metagpt/utils/stream_pipe.py
@@ -11,8 +11,10 @@ from multiprocessing import Pipe
class StreamPipe:
- parent_conn, child_conn = Pipe()
- finish: bool = False
+ def __init__(self,name=None):
+ self.name = name
+ self.parent_conn, self.child_conn = Pipe()
+ self.finish: bool = False
format_data = {
"id": "chatcmpl-96bVnBOOyPFZZxEoTIGbdpFcVEnur",