❄️ Python Package To Access GPT-3.5 Free Model
Project description
ProGPT - Free ChatGPT API
I reverse engineered ChatGPT 3.5's Free Web API and put it all together into this simple python package.
Both Generative & Conversation modes are supported.
Installation
$ pip install progpt
How to get session_token?
Follow these steps on your PC:
- Open chat.openai.com and login
- Open DevTools by pressing F12
- Open Application tab
- Under Cookies, tap https://chat.openai.com
- From the list of cookies, copy value of __Secure-next-auth.session-token
Generative Mode
Answers individual prompts, doesn't remember past messages.
from ProGPT import Generative
bot = Generative(session_token)
print(generative.prompt("who invented electricity?"))
Conversation Mode
Creates a conversation thread and remembers your chat history.
from ProGPT import Conversation
bot = Conversation(session_token)
print(bot.send("hello"))
print(bot.send("how are you?"))
Rate Limits
To overcome the free tier's rate limits:
- Add time gap between prompts
- Use multiple accounts consecutively.
Support Me
To support this project, please consider visiting this link:
PayPal: @gitdiezo
Legal
This is a third party library and not associated with OpenAI or ChatGPT. It's strictly for educational purposes. You are liable for all the actions you take.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ProGPT-1.0.5.tar.gz
(5.8 kB
view hashes)
Built Distribution
ProGPT-1.0.5-py3-none-any.whl
(8.2 kB
view hashes)