Skip to content
This repository was archived by the owner on Aug 10, 2023. It is now read-only.

Commit 62637a8

Browse files
author
Antonio
committed
SOME STUFF SHOULD NOT BE REMOVED
1 parent 62f6646 commit 62637a8

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/revChatGPT/V1.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,12 +364,10 @@ def __send_request(
364364
if line == "[DONE]":
365365
break
366366

367-
"""
368-
# this seems to just cut off parts of some messages
367+
# DO NOT REMOVE THIS
369368
line = line.replace('\\"', '"')
370369
line = line.replace("\\'", "'")
371370
line = line.replace("\\\\", "\\")
372-
"""
373371

374372
try:
375373
line = json.loads(line)
@@ -850,12 +848,10 @@ async def __send_request(
850848
if "[DONE]" in line:
851849
break
852850

853-
"""
854-
# this seems to just cut off parts of some messages
851+
# DO NOT REMOVE THIS
855852
line = line.replace('\\"', '"')
856853
line = line.replace("\\'", "'")
857854
line = line.replace("\\\\", "\\")
858-
"""
859855

860856
try:
861857
line = json.loads(line)

0 commit comments

Comments
 (0)