rimmelasghar / chatgpt-Api

This is an Unofficial Chat-GPT Api built with Flask & playwright. Use This To test Your ChatGPT projects for free.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Girl in a jacket

🤖 ChatGpt API (Un-Official)

This is an Unofficial Chat-GPT Api built with Flask & playwright. This Flask Project act as a Wrapper around ChatGpt.

⚙️ Prerequisites

  • You need to have python installed. You can install it from microsoft store or follow this guide.

Setting up a Virtual Enviroment

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

Installation:

now install all the dependencies.

 $ pip install -r requirements.txt

Working:

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

API Reference

Get Response

  GET /chat

Post Response

  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/

Demo

These are the Demo of the Api.

Feedback

If you have any feedback, please reach out to me at rimmelasghar4@gmail.com

License: MIT

print('Code by Rimmel with ❤')

About

This is an Unofficial Chat-GPT Api built with Flask & playwright. Use This To test Your ChatGPT projects for free.


Languages

Language:Python 100.0%