Giter Club home page Giter Club logo

chatgpt-lite's Introduction

ChatGPT Lite

English | 简体中文

ChatGPT Lite is a fast ChatGPT UI application developed using Next.js. It supports both OpenAI and Azure OpenAI accounts.

Example use cases for GPT Lite include:

  • A cost-effective alternative to ChatGPT's free version or Plus subscription ($20/month) by deploying a custom webchat UI with API integration.
  • Deploying a custom ChatGPT web app to explore OpenAI's ChatGPT completion API and prompting capabilities.
  • Creating a private web-based ChatGPT for exclusive use among friends without sharing an API key.
  • A high-quality code base that serves as an excellent starting point for your next AI Next.js project.

Visit ChatGPT Minimal for a beginner-friendly version of the ChatGPT UI code base.

Live Demo demo

Prerequisites

You'll need either an OpenAI account or an Azure OpenAI account.

Running Locally

  1. Install NodeJS 18.
  2. Clone the repository.
  3. Install dependencies with npm install.
  4. Copy .env.example file to .env.local and update environment variables.
  5. Start the application using npm run dev.
  6. Visit http://localhost:3000 in your browser.

Run with Docker

  1. Clone the repository and navigate to the root directory.
  2. Update the OPENAI_API_KEY environment variable in the docker-compose.yml file.
  3. Build the application using docker-compose build ..
  4. Start it by running docker-compose up -d.

One-click Deploy on Vercel

Click the button below to deploy to Vercel: Deploy with Vercel

Environment Variables

You will need to use the environment variables defined in .env.example to run the application. Below is an explanation of each environment variable:

For OpenAI-specific environments:

Name Description Default Value
OPENAI_API_BASE_URL Use only if you intend to use a reserved proxy for api.openai.com. https://api.openai.com
OPENAI_API_KEY Obtain secret key string from the Open AI API website.

For Azure Open AI-specific environments:

Name Description
AZURE_OPENAI_API_BASE_URL Endpoint (e.g., https://xxx.openai.azure.com).
AZURE_OPENAI_API_KEY Key
AZURE_OPENAI_DEPLOYMENT Model deployment name

Contribution

We welcome PRs of any size.

Disclaimers

This code is intended solely for demonstration and testing purposes.

chatgpt-lite's People

Contributors

blrchen avatar orcame avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.