Skip to content
@chat-gpt-assistant

chat-gpt-assistant

Chat-GPT Assistant

It's a clone (MVP) of the ChatGPT.

Basic funtionality is implemented:

  • Create, Delete, Delete all, Update title for Chats
  • Post messages to a chat and generate GPT response
  • Stop and Regenerate GPT responses
  • Edit User messages and switch between threads
  • Voice input powered by Whisper API and voice output built with Browser API

What is not implemented:

  • Pagination for chats and messages on UI
  • Rendering performance for the conversation can be improved
  • Some bugs are not fixed

Feel free to submit PRs and make forks.

Demo

Demo

How to Run

Create OpenAI API Account

  1. Sign up for an OpenAI API account at https://platform.openai.com/signup.
  2. Generate an API Key.

Prerequisites

Backend Setup

  1. Clone the backend repository:

    git clone https://github.com/chat-gpt-assistant/assistant-back.git
    cd assistant-back
  2. Update the src/main/resources/application-docker.yml file with your OpenAI API key

  3. Run MongoDB using the mongo.yml from the project:

    docker-compose -f ./src/main/docker/mongo.yml up -d
  4. Build the Docker image of the backend using Jib:

    ./gradlew jibDockerBuild
  5. Run the backend Docker image with network for MongoDB and opened ports for the REST API:

    docker run -d -p 8080:8080 --network docker_chatgptassistant-net -e SPRING_PROFILES_ACTIVE=docker --name chat-gpt-assistant com.github.chat-gpt-assistant/assistant-back:0.0.1-SNAPSHOT

UI Setup

  1. Clone the UI repository:

    git clone https://github.com/chat-gpt-assistant/assistant-ui.git
    cd assistant-ui
  2. Build the UI Docker image:

    docker build -t assistant-ui -f ./docker/Dockerfile .
  3. Run the UI Docker image:

    docker run -d -p 3000:80 --name assistant-ui assistant-ui

The front-end UI will now be available at http://localhost:3000.

Pinned Loading

  1. assistant-back assistant-back Public

    Kotlin 1

  2. assistant-ui assistant-ui Public

    TypeScript

Repositories

Showing 3 of 3 repositories
  • chat-gpt-assistant/assistant-back’s past year of commit activity
    Kotlin 1 0 0 0 Updated Apr 26, 2023
  • .github Public
    chat-gpt-assistant/.github’s past year of commit activity
    0 0 0 0 Updated Apr 11, 2023
  • assistant-ui Public
    chat-gpt-assistant/assistant-ui’s past year of commit activity
    TypeScript 0 0 0 0 Updated Apr 11, 2023

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…