Skip to content

React App for interacting with OpenAI's GPT Models

License

Notifications You must be signed in to change notification settings

Brandon82/gpt-clone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpt-clone

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.

UI Image

Getting Started

Prerequisites

  • Node.js installed
  • Python 3.7+ Installed
  • OpenAI API key

Installation

  1. Clone the repository:
    git clone https://github.com/Brandon82/gpt-clone
  2. Navigate to the project directory:
    cd gpt-clone
  3. Install Python requirements:
    pip install -r requirements.txt
  4. Edit config.json:
    • Place your OpenAI API key in config.json.
    • Ensure client-port and server-port are the correct ports that the app will run on.
  5. Navigate to React project directory:
    cd gpt-client
  6. Install npm packages:
    npm install
  7. Start both the React app and Python backend:
    npm run start

    Be sure to run this command in the gpt-client directory.

License

This project is licensed under the terms of the MIT license. See LICENSE for more details.