SoraRoseous / ChatSydney-react

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

无法开启tun模式,请问这种情况如何解决? #11

Open G-LJDS2022 opened 11 months ago

G-LJDS2022 commented 11 months ago

1690680249373 "Traceback (most recent call last):\n File \"D:\AI\ChatSydney-react\main.py\", line 28, in sydney_process_message\n chatbot = await Chatbot.create(cookies=cookies, proxy=args.proxy, imgid=imgid)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"D:\AI\ChatSydney-react\SydneyGPT\SydneyGPT.py\", line 20, in create\n obj = await EdgeChatBot.create(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"D:\AI\ChatSydney-react\EdgeGPT\EdgeGPT.py\", line 43, in create\n await Conversation.create(self.proxy, cookies=cookies, imgid=imgid),\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"D:\AI\ChatSydney-react\EdgeGPT\conversation.py\", line 110, in create\n response = await client.get(\n ^^^^^^^^^^^^^^^^^\n File \"C:\Users\Lenovo\AppData\Local\Programs\Python\Python311\Lib\site-packages\httpx\_client.py\", line 1757, in get\n return await self.request(\n ^^^^^^^^^^^^^^^^^^^\n File \"C:\Users\Lenovo\AppData\Local\Programs\Python\Python311\Lib\site-packages\httpx\_client.py\", line 1530, in request\n return await self.send(request, auth=auth, follow_redirects=follow_redirects)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\Users\Lenovo\AppData\Local\Programs\Python\Python311\Lib\site-packages\httpx\_client.py\", line 1617, in send\n response = await self._send_handling_auth(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\Users\Lenovo\AppData\Local\Programs\Python\Python311\Lib\site-packages\httpx\_client.py\", line 1645, in _send_handling_auth\n ...

SoraRoseous commented 11 months ago

在后台把完整的日志发一下呢

lioensky commented 11 months ago

我也是,提示 Exceeded maximum allowed redirects.

SoraRoseous commented 11 months ago

看看运行main.py的时候加没加代理,或者在main.py里修改了吗,最新版本的ChatSydney是不需要开tun模式的

lioensky commented 11 months ago

看看运行main.py的时候加没加代理,或者在main.py里修改了吗,最新版本的ChatSydney是不需要开tun模式的 我打开main,里面proxy used:后面是空白的

SoraRoseous commented 11 months ago

看看运行main.py的时候加没加代理,或者在main.py里修改了吗,最新版本的ChatSydney是不需要开tun模式的 我打开main,里面proxy used:后面是空白的

你在运行程序的时候加上 -p 你的代理地址,或者直接在main.py的183行里面修改

G-LJDS2022 commented 11 months ago

parser.add_argument("--host", "-H", help="host:port for the server", default="localhost:65432") parser.add_argument("--proxy", "-p", help='proxy address like "http://localhost:7890"', default="") 怎么加?

SoraRoseous commented 11 months ago

default里填上你的代理地址

G-LJDS2022 commented 11 months ago

搞定了,非常感谢

lioensky commented 11 months ago

default里填上你的代理地址 谢谢!好了!