Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/taranjeet/unofficial-chatgpt-api
This repo is unofficial ChatGPT api. It is based on Daniel Gross's WhatsApp GPT
https://github.com/taranjeet/unofficial-chatgpt-api
chatgpt gpt-3
Last synced: 11 days ago
JSON representation
This repo is unofficial ChatGPT api. It is based on Daniel Gross's WhatsApp GPT
- Host: GitHub
- URL: https://github.com/taranjeet/unofficial-chatgpt-api
- Owner: taranjeet
- License: mit
- Created: 2022-12-02T18:18:08.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-10T13:38:26.000Z (over 1 year ago)
- Last Synced: 2024-05-22T06:18:39.081Z (6 months ago)
- Topics: chatgpt, gpt-3
- Language: Python
- Homepage: https://embedchain.ai
- Size: 9.77 KB
- Stars: 685
- Watchers: 15
- Forks: 146
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: License
Awesome Lists containing this project
- awesome-chatgpt - taranjeet/unofficial-chatgpt-api - Unofficial ChatGPT API for development purposes (SDK, Libraries, Frameworks / Python)
README
# ChatGPT api
* It uses playwright and chromium to open browser and parse html.
* It is an unoffical api for development purpose only.# How to install
* Make sure that python and virual environment is installed.
* Create a new virtual environment
```python
# one time
virtualenv -p $(which python3) pyenv# everytime you want to run the server
source pyenv/bin/activate
```* Now install the requirements
```
pip install -r requirements.txt
```* If you are installing playwright for the first time, it will ask you to run this command for one time only.
```
playwright install
```* Now run the server
```
python server.py
```* The server runs at port `5001`. If you want to change, you can change it in server.py
# Api Documentation
* There is a single end point only. It is available at `/chat`
```sh
curl -XGET http://localhost:5001/chat?q=Write%20a%20python%20program%20to%20reverse%20a%20list
```# Updates
* [8 Dec 2022]: Updated parsing logic (credits @CoolLoong)
# Credit
* All the credit for this script goes to [Daniel Gross's whatsapp gpt](https://github.com/danielgross/whatsapp-gpt) package. I have just taken the script as an individual file and added documentation for how to install and run it.
# Disclaimer
Please note that this project is a personal undertaking and not an official OpenAI product. It is not affiliated with OpenAI in any way, and should not be mistaken as such.