Zai-Kun / reverse-engineered-chatgpt

Unofficial reverse-engineered ChatGPT API in Python
Apache License 2.0
240 stars 31 forks source link

No answer no error #42

Open sergedc opened 4 months ago

sergedc commented 4 months ago

Hi, great project. Thank you for keeping it up to date.

When I try it, all I see as output is my prompt, but the answer never comes. The script never ends, I waited 30 minutes. I saw another post saying this does not work with GPT 4? I have chatGPT plus. How do I tell the code to use GPT 3.5? Might that be the reason it is not working for me?

Barrierml commented 4 months ago
  1. if you are chatGPT plus, then your account need arkose key, I never test pass it before in this project, so i am uncertain of it
  2. I suggest you go straight to no-sign mode, If the requests are not very frequent
    
    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())


you can use it at https://github.com/Barrierml/reverse-engineered-chatgpt firstly