ChatGPT is a reverse engineering of OpenAI's ChatGPT API
Project description
ChatGPT
Reverse Engineered ChatGPT by OpenAI. Extensible for chatbots etc.
Connect with me on Linkedin to support this project. I'm graduating high school soon and knowing some people might help my chances at finding employment.
Notice: The project has been archived in favor of a more robust API system under the ChatGPT-Hackers organization.
Usage
Installation
pip3 install --upgrade revChatGPT
python3 -m playwright install
Usage
python3 -m revChatGPT
Configuration (Optional)
All of these are optional
{
"session_token": "<token>",
"proxy":"<proxy>",
"accept_language": "en-US,en"
}
Developer usage
Take a look at the main.py
Basics
from revChatGPT.revChatGPT import Chatbot
# Do some config
...
chatbot = Chatbot({
# This could be blank but the dict should be here
})
chatbot.get_chat_response(prompt, output="text") #output=stream uses async generator
Using a proxy?
连接代理后运行,等待首次浏览器自动关闭后,立即关闭代理,建议设置全局代理运行。如果顺利完成,等待浏览器第二次自动打开后。将会正确获取到参数。
Open the proxy first, run it, wait for the browser to close automatically for the first time, and immediately close the proxy. It is recommended to set a global shortcut key to press. If completed successfully, the browser will automatically open after the second time. The parameters can be obtained correctly.
Awesome ChatGPT
If you have a cool project you want added to the list, open an issue.
Disclaimers
This is not an official OpenAI product. This is a personal project and is not affiliated with OpenAI in any way. Don't sue me
Credits
- rawandahmad698 - Reverse engineering Auth0
- FlorianREGAZ - TLS client
- PyRo1121 - Linting
- Harry-Jing - Async support
- Ukenn2112 - Documentation
- aliferouss19 - Logo
- All other contributors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for revChatGPT-0.0.44.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3f269b2e54c1252696336710871ff867b8712c75f737a3c8814c04d33225c79 |
|
MD5 | e3f0c14c7a52aa13f1e5cb04151a776f |
|
BLAKE2b-256 | c91579a9121adb0c8594bf7543d73de501d21719b3742aeae04048ff31c8c47d |