chatgpt-demo  by anse-app

Minimal web UI for ChatGPT

created 2 years ago
8,027 stars

Top 6.6% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides a minimal, self-hostable web UI for interacting with OpenAI's ChatGPT API, targeting developers and users who want a private or customized interface to the language model. It offers a straightforward way to deploy a chat interface with features like password protection and custom API endpoints.

How It Works

The application is built using Astro and leverages the OpenAI GPT-3.5 Turbo API. It's designed for easy deployment via various platforms like Vercel, Netlify, Docker, or Sealos. Configuration is managed through environment variables, allowing users to specify their OpenAI API key, proxy settings, and even custom API base URLs or models.

Quick Start & Requirements

  • Install: pnpm install
  • Prerequisites: Node.js v18+, PNPM, OpenAI API Key.
  • Run: pnpm run dev (runs on http://localhost:3000/)
  • Docker: docker run --name=chatgpt-demo -e OPENAI_API_KEY=YOUR_OPEN_API_KEY -p 3000:3000 -d ddiu8081/chatgpt-demo:latest
  • Docs: Astro Deployment

Highlighted Details

  • Supports password protection for the web UI.
  • Allows customization of OpenAI API base URL and model.
  • Offers proxy support for API requests.
  • Provides deployment guides for Vercel, Netlify, Docker, and Sealos.

Maintenance & Community

The project is maintained by ddiu8081. Further discussions and feature requests can be found in the GitHub discussions.

Licensing & Compatibility

  • License: MIT
  • Compatibility: Permissive MIT license allows for commercial use and integration into closed-source projects.

Limitations & Caveats

The live preview site is currently unavailable due to API key limits. Automatic updates after forking require manual enabling of Workflows and Upstream Sync Action.

Health Check
Last commit

1 year ago

Responsiveness

1 day

Pull Requests (30d)
0
Issues (30d)
0
Star History
39 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.