Overview
Light-GPT is an interactive website project based on the GPT-3.5-Turbo model. Built with the Next.js framework and deployed on the Vercel cloud platform, Light-GPT is a lightweight pure front-end application that facilitates dialogue interactions with an AI model.
Features
- Front-end application utilizing the GPT-3.5-Turbo model with API KEY integration for OpenAI dialogue interface requests.
- Supports streaming data and displays robot replies in a typewriter effect on the webpage.
- Users can set their API KEY on the front-end page for fast Q&A speed and client-side API KEY storage to prevent leakage.
- Allows for new thematic dialogues, viewing historical dialogues, and storing dialogue data locally in the IndexedDB for enhanced privacy.
- AI responses to programming-related questions feature multiple syntax highlighting options and one-click code copying.
- Enables dialogue image export and PDF export functionalities.
- Fully responsive design for both PC and mobile devices, offering convenience and flexibility.
- DIY feature supports customizable user avatars and AI avatars.
Installation
Local Deployment
- Download the project to your local machine.
- Navigate to the project directory and install dependencies:
npm install
- Start the application:
npm start
- Preview the project at http://localhost:3000 and enter your API KEY on the front-end page to begin chatting.
Vercel Online Deployment
- Register for a Vercel account.
- Fork the Light-GPT repository to your Github account.
- Log in to Vercel, click “Add New”, select “Project”, import the forked project, and click “Deploy”.
Docker Local Deployment
- Pull the latest Docker image:
docker pull <image_name>
- Run the image and map port 3000 to port 3000:
docker run -p 3000:3000 <image_name>
Summary
Light-GPT is a fascinating interactive website project that leverages the advanced GPT-3.5-Turbo model for dialogue interactions. With its user-friendly features, secure API KEY handling, and versatile deployment options, Light-GPT offers a unique and efficient AI-powered chatting experience.