This is an Unofficial Chat-GPT Api built with Flask & playwright. This Flask Project act as a Wrapper around ChatGpt.
- You need to have python installed. You can install it from microsoft store or follow this guide.
It’s a common practice to have your Python apps and their instances running in virtual environments. Virtual environments allow different package sets and configurations to run simultaneously, and avoid conflicts due to incompatible package versions.
Create a Virtual Enviroment in python by executing following command.
$ python3 -m venv env
activate the virtual environment.
# On Unix or MacOS (bash shell):
/path/to/venv/bin/activate
# On Unix or MacOS (csh shell):
/path/to/venv/bin/activate.csh
# On Unix or MacOS (fish shell):
/path/to/venv/bin/activate.fish
# On Windows (command prompt):
\path\to\venv\Scripts\activate.bat
# On Windows (PowerShell):
\path\to\venv\Scripts\Activate.ps1
now install all the dependencies.
$ pip install -r requirements.txt
Thats it! You are ready to go.
run the Project by executing this.
$ python3 chat.py
Project will be available on
http://127.0.0.1:8000
GET /chat
POST /chat/${q}
Parameter | Type | Description |
---|---|---|
q |
string |
Required. message that you want to pass |
regenerate the Session
POST /regenerate/
reset the Session
POST /reset/
restart the Session
POST /restart/
These are the Demo of the Api.
If you have any feedback, please reach out to me at rimmelasghar4@gmail.com
print('Code by Rimmel with ❤')