gpt-clone is a React/Vite app that provides a user-friendly interface to interact with OpenAI's chat models like GPT-4.
- Frontend: React with TypeScript.
- Backend: FastAPI in Python.
- Node.js installed
- Python 3.7+ Installed
- OpenAI API key
- Clone the repository:
git clone https://github.com/Brandon82/gpt-clone
- Navigate to the project directory:
cd gpt-clone
- Install Python requirements:
pip install -r requirements.txt
- Edit
config.json
:- Place your OpenAI API key in
config.json
. - Ensure
client-port
andserver-port
are the correct ports that the app will run on.
- Place your OpenAI API key in
- Navigate to React project directory:
cd gpt-client
- Install npm packages:
npm install
- Start both the React app and Python backend:
npm run start
Be sure to run this command in the
gpt-client
directory.
This project is licensed under the terms of the MIT license. See LICENSE for more details.