[BUG]revChatGPT.V2这个版本会报错KeyError: 'accessToken'
revChatGPT.V2这个版本
Traceback (most recent call last):
File "e:\admin\Desktop\openai\chatgpt.py", line 10, in
需要VPN在中国
已经用了VPN了
是"Clash"吗?
大神能加个微信吗
v2rayn

有可能是 OpenAI 阻止这个IP
我等会儿写个 Auth server
ok ,大神等你更新
大神加个微信平常带我玩玩呀,来南京我请你吃饭
微信就不加了,我也需要点隐私。
而且我在重庆,有点远
@long202258 你的问题里把你的邮箱和id都暴露了,建议隐藏一下吧
@long202258 你的问题里把你的邮箱和id都暴露了,建议隐藏一下吧
谢谢大哥
微信就不加了,我也需要点隐私。
而且我在重庆,有点远
重庆也没事我给你寄点南京的特产,偶尔也会去出差
大哥我们也加个微信吧
我也是这样
__part_eight方法请求404,拿不到access_token
也是这个问题
也是这个问题
网页上直接访问是有token的
大佬解决了给个回信,待会在来看看
正在写。等一等
revChatGPT.V2这个版本 Traceback (most recent call last): File "e:\admin\Desktop\openai\chatgpt.py", line 10, in asyncio.run(main()) File "D:\Python\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "D:\Python\lib\asyncio\base_events.py", line 649, in run_until_complete return future.result() File "e:\admin\Desktop\openai\chatgpt.py", line 4, in main chatbot = Chatbot(email="", password="") File "D:\Python\lib\site-packages\revChatGPT\V2.py", line 120, in init self.login(email, password) File "D:\Python\lib\site-packages\revChatGPT\V2.py", line 173, in login self.api_key = auth.get_access_token() File "D:\Python\lib\site-packages\OpenAIAuth\OpenAIAuth.py", line 348, in get_access_token self.access_token = response.json()["accessToken"] KeyError: 'accessToken' 会出现报错,请帮忙解决
目前有辦法註冊嗎? 我嘗試了不少 email,結果還是只能通過 Google & M$ 登入 ...
请问如何在代码中设置vpn呢?
Proxy option added:

I will deploy auth proxy
https://github.com/acheong08/ChatGPT/releases/tag/2.1.6
--insecure-auth uses a proxy that I host to get access token.
Traceback (most recent call last):
File "/Users/xx/Desktop/woshua/python/openai/main.py", line 10, in
产生一个新的问题
It's a stream.
from revChatGPT.V2 import Chatbot
async def main():
chatbot = Chatbot(email="...", password="...")
async for line in chatbot.ask("Hello"):
print(line["choices"][0]["text"].replace("<|im_end|>", ""), end="")
sys.stdout.flush()
print()
if __name__ == "__main__":
import asyncio
asyncio.run(main())
You can also do:
from revChatGPT.V2 import Chatbot
async def main():
chatbot = Chatbot(email="...", password="...")
full_text = ""
async for line in chatbot.ask("Hello"):
full_text += line["choices"][0]["text"].replace("<|im_end|>", "")
sys.stdout.flush()
print(full_text)
if __name__ == "__main__":
import asyncio
asyncio.run(main())
忘记回复大佬了,已经跑起来了,感谢~~