Light Gpt

screenshot of Light Gpt
nextjs
react
scss

Light-GPT is an interactive website project based on the GPT-3.5-Turbo Model.

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.

Local Deployment

  1. Download the project to your local machine.
  2. Navigate to the project directory and install dependencies:
    npm install
    
nextjs
Next.js

Next.js is a React-based web framework that enables server-side rendering, static site generation, and other powerful features for building modern web applications.

react
React

React is a widely used JavaScript library for building user interfaces and single-page applications. It follows a component-based architecture and uses a virtual DOM to efficiently update and render UI components

scss
SCSS

SCSS is a preprocessor scripting language that extends the capabilities of CSS by adding features such as variables, nesting, and mixins. It allows developers to write more efficient and maintainable CSS code, and helps to streamline the development process by reducing repetition and increasing reusability.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

postcss
Postcss

PostCSS is a popular open-source tool that enables web developers to transform CSS styles with JavaScript plugins. It allows for efficient processing of CSS styles, from applying vendor prefixes to improving browser compatibility, ultimately resulting in cleaner, faster, and more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.

vercel
Vercel

Vercel offers built-in support for deploying and hosting Next.js applications, making it a popular choice among Next.js developers.