You are on page 1of 4

3/5/23, 21:05 GitHub - xtekky/chatgpt-clone: ChatGPT interface with better UI

xtekky / chatgpt-clone Public

ChatGPT interface with better UI

chatbot.sex

GPL-3.0 license

1.7k stars 525 forks

Star Notifications

Code Issues 29 Pull requests 7 Actions Projects Security Ins

main Go to file

xtekky … 3 days ago

View code

working again ; ) I am very busy at the moment so I would be very thankful for contributions
and PR's

To do
Double confirm when deleting conversation
loading / exporting a conversation
remember user preferences
theme changer
speech output and input (elevenlabs; ex: https://github.com/cogentapps/chat-with-gpt)
load files, ex: https://github.com/mayooear/gpt4-pdf-chatbot-langchain
better documentation and cross-platfotm (docker for ex)
use react / faster backend language ? (newbies may be more confused and discouraged
to use it)

ChatGPT Clone
feel free to improve the code / suggest improvements

https://github.com/xtekky/chatgpt-clone 1/4
3/5/23, 21:05 GitHub - xtekky/chatgpt-clone: ChatGPT interface with better UI

Getting Started
ToREADME.md
get started with this project, you'll need to clone the repository and set up a virtual
environment. This will allow you to install the required dependencies without affecting your
system-wide Python installation.

Prequisites
Before you can set up a virtual environment, you'll need to have Python installed on your
system. You can download Python from the official website:
https://www.python.org/downloads/

Cloning the Repository


Run the following command to clone the repository:

git clone https://github.com/xtekky/chatgpt-clone.git

Setting up a Virtual Environment


To set up a virtual environment, follow these steps:

1. Navigate to the root directory of your project.

cd chatgpt-clone

https://github.com/xtekky/chatgpt-clone 2/4
3/5/23, 21:05 GitHub - xtekky/chatgpt-clone: ChatGPT interface with better UI

2. Run the following command to create a new virtual environment:

python -m venv venv

3. Activate the virtual environment by running the following command:

source venv/bin/activate

If you're on Windows, the command will be slightly different:

venv\Scripts\activate

4. Install the required dependencies by running the following command:

pip install -r requirements.txt

Configure the Application


To configure the application, there are a few properties that can be set either via the
environment or via config.json. The environment variable takes priority.

Field Env Variable config.json examples

The OpenAI Api


OPENAI_API_KEY openai_key sk-...
Key

https://api.openai.com
The OpenAI Base
OPENAI_API_BASE openai_api_key http://my-reverse-
URL
proxy/

Use the Base URL if you need to run your queries through a reverse proxy (like this one
which will run your queries through Azure's OpenAI endpoints )

Running the Application


To run the application, make sure the virtual environment is active and run the following
command:

python run.py

https://github.com/xtekky/chatgpt-clone 3/4
3/5/23, 21:05 GitHub - xtekky/chatgpt-clone: ChatGPT interface with better UI

Docker
The easiest way to run ChatGPT Clone is by using docker

docker-compose up

Contributors 18

+ 7 contributors

Languages

Python 35.1% JavaScript 26.4% CSS 24.9% HTML 12.0% Other 1.6%

https://github.com/xtekky/chatgpt-clone 4/4

You might also like