Merge pull request #1381 from kiedeng/fix_stream_output

Fixing Streamed Output Misalignment
This commit is contained in:
Alexander Wu 2024-07-16 10:19:51 +08:00 committed by GitHub
commit b8c39a46ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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",