chatgpt-web  by Chanzhaoyu

Web UI for ChatGPT, supporting dual models

Created 3 years ago
31,464 stars

Top 1.4% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a web interface for interacting with ChatGPT, built using Express and Vue3. It targets developers and users who want a self-hosted, customizable ChatGPT experience, offering flexibility in API usage and deployment.

How It Works

The application supports two primary methods for accessing ChatGPT: the official OpenAI API (using gpt-3.5-turbo) and an unofficial proxy API that leverages web access tokens. The unofficial method bypasses Cloudflare and offers a "smarter" response, though it's noted as less reliable and dependent on third-party servers. Configuration is managed via environment variables, allowing users to specify API keys, access tokens, models, and proxy settings.

Quick Start & Requirements

  • Install: pnpm install (backend), pnpm bootstrap (frontend)
  • Run: pnpm start (backend), pnpm dev (frontend)
  • Prerequisites: Node.js (^16, ^18, ^19), PNPM. Docker is also supported.
  • Configuration: Requires OPENAI_API_KEY or OPENAI_ACCESS_TOKEN set in service/.env.
  • Docs: Introduction

Highlighted Details

  • Supports dual models (OpenAI API and unofficial proxy).
  • Offers extensive configuration options via environment variables for API endpoints, models, proxies, and security.
  • Provides Docker images and docker-compose configurations for easy deployment.
  • Includes Nginx configuration snippets to prevent web crawlers.

Maintenance & Community

The project is actively maintained by Chanzhaoyu. Acknowledgements are given to JetBrains for providing an open-source license. Links to contributing guides are available.

Licensing & Compatibility

  • License: MIT
  • Compatibility: The MIT license permits commercial use and linking with closed-source projects.

Limitations & Caveats

The unofficial proxy method is described as "relatively unreliable" and dependent on third-party servers. Users are warned about potential risks when using access tokens with third-party proxies. The project also mentions a commit message verification process for contributors.

Health Check
Last Commit

2 years ago

Responsiveness

1 day

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

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Ishaan Jaffer Ishaan Jaffer(Cofounder of LiteLLM), and
4 more.

chathub by chathub-dev

0%
11k
All-in-one chatbot client
Created 3 years ago
Updated 6 months ago
Feedback? Help us improve.