Metadata-Version: 2.1
Name: ProGPT
Version: 1.0.0
Summary: ❄️ Python Package To Access GPT-3.5 Free Model
Home-page: https://github.com/diezo/progpt
Download-URL: https://github.com/diezo/progpt/archive/refs/tags/v1.0.0.tar.gz
Author: Deepak Soni
Author-email: sonniiii@outlook.com
License: MIT
Keywords: progpt,chatgpt,gpt-3.5,python-gpt,python-chatgpt,ai,generative-ai,chatgpt-ai,python-ai,python-generative-ai
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: requests
Requires-Dist: selenium

# ProGPT - GPT-3.5 API Reverse Engineered
I reverse engineered [ChatGPT 3.5](https://chat.openai.com)'s API and put it all together into this simple python package.

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

[<img style="margin-top: 10px" src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-1.svg" width="160"/>](https://buymeacoffee.com/diezo)

## Installation
Download this repository and place into your project folder.

### Get your session_token
1. Login to [chat.openai.com](https://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.

```python
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.

```python
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:

[<img src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-1.svg" width="150"/>](https://buymeacoffee.com/diezo)

## 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.
