Skip to main content

❄️ Python Package To Access GPT-3.5 Free Model

Project description

ProGPT - GPT-3.5 API Reverse Engineered

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

It supports both Generative (Singular prompts) & Conversation (Chat-like) mode.

Installation

Download this repository and place into your project folder.

Get your session_token

  1. Login to chat.openai.com in your computer.
  2. Open DevTools by pressing F12 or Right Click > Inspect
  3. Click on the Application tab
  4. Click on https://chat.openai.com under the Cookies tab
  5. Copy the value of __Secure-next-auth.session-token cookie. This is your session_token.

Generative

With this mode, the AI doesn't remember your prompts but rather responds to independent prompts.

from ProGPT import Generative

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

print(generative.prompt("hello"))

Conversation

With this mode, the AI remembers your previous messages and responds to your prompts keeping them in mind.

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..."))

Donate

Wish to support this project? Please consider donating:

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.0.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distributions

progpt-1.0.0-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

ProGPT-1.0.0-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