Skip to main content

❄️ Python Package To Access GPT-3.5 Free Model

Project description

ProGPT - Free GPT-3.5 API

I reverse engineered ChatGPT 3.5's Free Web API and put it all together into this simple python package.

It supports both Generative & Conversation mode.

🌟 Just a minute!

ProGPT is still in it's early stages and requires your support. Don't forget to give a star. Thank you!

Installation

$ pip install progpt

Get your session_token

  1. Log in to chat.openai.com on desktop.
  2. Open DevTools by pressing F12 or Right Click > Inspect.
  3. Click on the Application tab.
  4. Under the Cookies section, tap https://chat.openai.com.
  5. Copy the value of __Secure-next-auth.session-token from the list. This is your session_token.

🤖 Generative

Used for independent prompts.

from ProGPT import Generative

generative = Generative(session_token)  # See above on how to get session_token

print(generative.prompt("hello"))

💬 Conversation

Just like chat. AI will remember your past messages as well in the conversation.

from ProGPT import Conversation

conversation = Conversation(session_token)  # See above on how to get session_token

print(conversation.send("hello"))
print(conversation.send("how's your day going?"))
print(conversation.send("i want to ask something..."))

⚡ Rate Limit

Nothing comes free of charge. While using this library is free, OpenAI does put some rate limits per hour when you ask questions too fast. You can use multiple accounts if that's a problem.

Support

Want to support this project?

Legal

This is a third party library and not associated with OpenAI or ChatGPT. It is strictly for educational purposes only. 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.2.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

ProGPT-1.0.2-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page