SoraRoseous / ChatSydney-react

帮黑暗大佬暂时维护下,已支持图像生成(需cookie)和图像识别,不过图像识别结果仅在当次对话有效。可以进下面的链接体验一下(建议使用自己的cookie,不填默认是用我的,容易上限),这个地址可能会变动。
https://80c9-38-207-143-112.ngrok-free.app
The Unlicense
81 stars 34 forks source link

报错了 #1

Closed huankong233 closed 1 year ago

huankong233 commented 1 year ago
C:\Users\huan_kong\Desktop\code\ChatSydney-react\main.py:148: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
Go to http://localhost:65432 to start chatting!
Traceback (most recent call last):
  File "C:\Users\huan_kong\Desktop\code\ChatSydney-react\main.py", line 28, in sydney_process_message
    async for _, response in chatbot.ask_stream(prompt=user_message, conversation_style="creative", raw=True,
  File "C:\Users\huan_kong\AppData\Roaming\Python\Python310\site-packages\SydneyGPT\SydneyGPT.py", line 30, in ask_stream
    async for key, value in super().ask_stream(*args, **kwargs):
  File "C:\Users\huan_kong\AppData\Roaming\Python\Python310\site-packages\EdgeGPT\EdgeGPT.py", line 185, in ask_stream
    async for response in self.chat_hub.ask_stream(
  File "C:\Users\huan_kong\AppData\Roaming\Python\Python310\site-packages\SydneyGPT\SydneyGPT.py", line 55, in ask_stream
    async for key, value in super().ask_stream(*args, **kwargs):
  File "C:\Users\huan_kong\AppData\Roaming\Python\Python310\site-packages\EdgeGPT\chathub.py", line 102, in ask_stream
    async with connect(
  File "C:\Users\huan_kong\AppData\Roaming\Python\Python310\site-packages\websockets\legacy\client.py", line 633, in __aenter__
    return await self
  File "C:\Users\huan_kong\AppData\Roaming\Python\Python310\site-packages\websockets\legacy\client.py", line 650, in __await_impl_timeout__
    return await asyncio.wait_for(self.__await_impl__(), self.open_timeout)
  File "C:\Program Files\Python310\lib\asyncio\tasks.py", line 445, in wait_for
    return fut.result()
  File "C:\Users\huan_kong\AppData\Roaming\Python\Python310\site-packages\websockets\legacy\client.py", line 659, in __await_impl__
    await protocol.handshake(
  File "C:\Users\huan_kong\AppData\Roaming\Python\Python310\site-packages\websockets\legacy\client.py", line 328, in handshake
    raise InvalidStatusCode(status_code, response_headers)
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200
SoraRoseous commented 1 year ago

edgeGPT0.11.8里面把创建ws连接的代理移除了,现在想正常使用的话得开全局代理,或者等修复吧😂

huankong233 commented 1 year ago

好的,谢谢,打扰了