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

Commit

Permalink
Avoid unnecessary unescaping for httpx (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenLiangcan authored Feb 25, 2023
1 parent 14b14e3 commit 324f0d7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/revChatGPT/V1.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,6 @@ async def ask(
if "[DONE]" in line:
break

line = (
line.replace('\\"', '"').replace("\\'", "'").replace("\\\\", "\\")
)

try:
line = json.loads(line)
except json.decoder.JSONDecodeError:
Expand Down

0 comments on commit 324f0d7

Please sign in to comment.