diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-25 13:31:12 +0200 |
---|---|---|
committer | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-25 13:31:12 +0200 |
commit | cfce83bb8492abfb608ab47c1c6815031f53c765 (patch) | |
tree | ada99f785fb65347869611817e519ed2d1d3bdfb /unfinished/gptbz | |
parent | poe.com update (diff) | |
download | gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.tar gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.tar.gz gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.tar.bz2 gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.tar.lz gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.tar.xz gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.tar.zst gpt4free-cfce83bb8492abfb608ab47c1c6815031f53c765.zip |
Diffstat (limited to '')
-rw-r--r-- | unfinished/gptbz/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/unfinished/gptbz/__init__.py b/unfinished/gptbz/__init__.py index 6762b4ab..ba326cf6 100644 --- a/unfinished/gptbz/__init__.py +++ b/unfinished/gptbz/__init__.py @@ -1,6 +1,4 @@ -import asyncio import websockets - from json import dumps, loads async def test(): @@ -20,6 +18,8 @@ async def test(): try: response = await wss.recv() json_response = loads(response) + print(json_response) + ended = json_response.get('eof') if not ended: @@ -28,4 +28,3 @@ async def test(): except websockets.ConnectionClosed: break -asyncio.run(test())
\ No newline at end of file |