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 details)

Uploaded Source

Built Distributions

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

Uploaded Python 3

ProGPT-1.0.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file ProGPT-1.0.0.tar.gz.

File metadata

  • Download URL: ProGPT-1.0.0.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for ProGPT-1.0.0.tar.gz
Algorithm Hash digest
SHA256 69d463a19ec83edaf3278e1ebbc6746464cc63753ca8aa6ad1e66934c7dd510c
MD5 fcbe71407f78953802ea074afa280b65
BLAKE2b-256 9fe614ad7ab204c622cdaa62b6b27ea32f0f82fbc5d7936e1ef627e23f75914d

See more details on using hashes here.

File details

Details for the file progpt-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: progpt-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for progpt-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61ee09fd1b62000f12af87bf1c7edbbdbf59ae87ef23d1e82c117883a9759578
MD5 8c11659c0add3fd6ca3b2f5f64c64267
BLAKE2b-256 72aab98d5490a4994206d26ba702a3d2ff93071cc34f0cae10c1dc3cfde800ca

See more details on using hashes here.

File details

Details for the file ProGPT-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ProGPT-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for ProGPT-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a56719f70ce0677f15fb964e7565afc4e47922fd105a7a27ee2b8f29ae84d65
MD5 afb8a2c4dae8db9851dfd69a2061b087
BLAKE2b-256 e398408d3a9f2008192824f9e1a1aba75ad035143f79c29fb5393d3dc2808d05

See more details on using hashes here.

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