First, this little simple project is based on:
https://github.com/ioanmo226/chatgpt-web-application
So, huge thank to @ioanmo226!
I modified part of the javascript and wrote a another simple backend with flask to give this program the ability to understand context.
- To prevent abuse, I added a simple permission authentication.
- Now, GPT-4 is supported.
git clone https://github.com/restkhz/chatGPT-simple-proxy.git
pip install -r requirements.txt
export AUTH=<1 or 0. set to 1 to enable authentication> PORT=<3001> TOKEN=<sk-xxx...>
- If you set
AUTH
to1
in the previous step, modifyusers.json
to assign credentials. python chatGPT_proxy.py
Image is about 144Mb
git clone https://github.com/restkhz/chatGPT-simple-proxy.git
- Modify
Dockerfile
to fit your environment. sudo docker image build -t chatgpt-proxy .
sudo docker container run -p <port>:3001 -v $(pwd):/app chatgpt-proxy
Please do not use it in a production environment.