• Stars
    star
    688
  • Rank 65,712 (Top 2 %)
  • Language
    Python
  • License
    MIT License
  • Created about 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This repo is unofficial ChatGPT api. It is based on Daniel Gross's WhatsApp GPT

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

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

More Repositories

1

awesome-gpts

Collection of all the GPTs created by the community
1,241
star
2

awesome-gpt4

Curated list of awesome resources, use cases and demos for GPT-4
289
star
3

hindi-tokenizer

This is a package in Python which implements a tokenizer, stemmer for Hindi language
Python
91
star
4

awesome-claude

An awesome list of AnthropicAI' Claude model
51
star
5

awesome-chatgpt

49
star
6

django-library-app

A tutorial app to explain django dynamic formsets
Python
49
star
7

awesome-paid-resources-free-during-covid19

List of all the paid resources offered for free during COVID-19
21
star
8

github-trending-cli

A Python package which lists trending repositories and developers from Github
Python
19
star
9

greb

GRab meaning from wEB | A python based CLI which tells meaning for a particular word
Python
19
star
10

llmformatter

Get deterministic output in any format like json from any LLM.
Python
18
star
11

react-spa-demo

Single Page Application to learn react router
JavaScript
12
star
12

chatgpt-whatsapp-bot

Whatsapp Bot which interacts with ChatGPT
Python
12
star
13

LyricsMania

Executable file to get lyrics of any song
TeX
4
star
14

code-snippets

A collection of some important/tricky/easy/common/frequently used snippets in various languages
4
star
15

reference

A list of all the commands and ways that I use to install or configure anything
Shell
3
star
16

mac-setup

3
star
17

mistral-medium-ui

TypeScript
3
star
18

100-days-of-code-journal

A modified version of the progress of 100 days of code challenge
2
star
19

django-starter-skeleton

A django project skeleton
Python
2
star
20

taranjeet.github.io

HTML
2
star
21

analysis

:-|
JavaScript
2
star
22

project-ideas

Collection of all the project/app ideas/features/enhancements at one place.
1
star
23

codechef

All the codechef programs here
C++
1
star
24

dotfiles

dotfiles
Shell
1
star
25

Tokenizer

This contains a tokenizer for Hindi laguage
Python
1
star
26

django-view-only-permission

This repository contains a sample app for implementing Django View only permission.
Python
1
star
27

todo-app-backend

Django based backend for todo application
Python
1
star
28

auth-app-frontend

A react application to demonstrate authentication powered by a backend(Django) using JWT.
JavaScript
1
star
29

subtitli

Python
1
star
30

frontend-practice

HTML
1
star
31

react-movie-detail-demo

A react app to demo dynamic routing
JavaScript
1
star