Closed 1Wayne1 closed 4 months ago
You can try to save yourself first
curl -x http://localhost:7890 https://chat.openai.com/
pip install git+https://github.com/Zai-Kun/reverse-engineered-chatgpt
from re_gpt import AsyncChatGPT
import asyncio
async def main(): async with AsyncChatGPT() as chatgpt: conversation = chatgpt.create_new_conversation() async for message_chunk in conversation.chat("hello"): print(message_chunk["content"], flush=True, end="")
if name == "main": asyncio.run(main())
## Finally
If every action does not work, you can provide your environment (Python version, Test Code, And VPN region)
Check
You can try to save yourself first
- Check your proxy is work
curl -x http://localhost:7890 https://chat.openai.com/
- Check your re_gpt version is newest, you can install use
pip install git+https://github.com/Zai-Kun/reverse-engineered-chatgpt
- Your account is chatgpt-plus or not, Plus users are having problems right now
- You can directly use no-sign mode right now for test
from re_gpt import AsyncChatGPT import asyncio async def main(): async with AsyncChatGPT() as chatgpt: conversation = chatgpt.create_new_conversation() async for message_chunk in conversation.chat("hello"): print(message_chunk["content"], flush=True, end="") if __name__ == "__main__": asyncio.run(main())
Finally
If every action does not work, you can provide your environment (Python version, Test Code, And VPN region)
I updated the newest re-gpt and it worked. Thanks
I try your 'async_basic_example' and I got this error:
I used a proxy like this
async with AsyncChatGPT(proxies={"https": "http://localhost:7890"}, session_token=session_token) as chatgpt: