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

Commit

Permalink
SOME STUFF SHOULD NOT BE REMOVED
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio committed Jun 1, 2023
1 parent 62f6646 commit 62637a8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/revChatGPT/V1.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,10 @@ def __send_request(
if line == "[DONE]":
break

"""
# this seems to just cut off parts of some messages
# DO NOT REMOVE THIS
line = line.replace('\\"', '"')
line = line.replace("\\'", "'")
line = line.replace("\\\\", "\\")
"""

try:
line = json.loads(line)
Expand Down Expand Up @@ -850,12 +848,10 @@ async def __send_request(
if "[DONE]" in line:
break

"""
# this seems to just cut off parts of some messages
# DO NOT REMOVE THIS
line = line.replace('\\"', '"')
line = line.replace("\\'", "'")
line = line.replace("\\\\", "\\")
"""

try:
line = json.loads(line)
Expand Down

0 comments on commit 62637a8

Please sign in to comment.