ChatGPT  by acheong08

Reverse-engineered API for ChatGPT, plus official OpenAI API support

created 2 years ago
28,040 stars

Top 1.4% on sourcepulse

GitHubView on GitHub
Project Summary

This repository provides reverse-engineered Python clients for OpenAI's ChatGPT, enabling programmatic access to both the unofficial ChatGPT web interface (V1) and the official ChatGPT API (V3). It's designed for developers and power users looking to integrate ChatGPT capabilities into their applications or workflows.

How It Works

Version 1 bypasses Cloudflare using a dedicated proxy, simplifying access to the ChatGPT web interface. It supports authentication via email/password or access tokens and allows configuration of conversation history, models (including GPT-4 and plugins), and proxy settings. Version 3 utilizes the official OpenAI API, requiring an API key and offering direct access to models like gpt-3.5-turbo and gpt-4.

Quick Start & Requirements

  • Installation: python -m pip install --upgrade revChatGPT
  • V1 Prerequisites: Python 3.9+ (3.11+ recommended), OpenAI account credentials (email/password or access token), optional CHATGPT_BASE_URL environment variable for custom proxies.
  • V3 Prerequisites: Python 3.9+, OpenAI API key.
  • Configuration: Save credentials and settings to $HOME/.config/revChatGPT/config.json.
  • Usage: Command-line interface (python3 -m revChatGPT.V1 or python3 -m revChatGPT.V3) or as a Python library.
  • Docs: Wiki

Highlighted Details

  • Supports GPT-4 and plugin integration in V1.
  • Offers both streamed and single-result responses.
  • Command-line interface with multi-line input and history editing.
  • V3 provides direct access to official API models.

Maintenance & Community

The project is maintained by acheong08, with contributions from a community of developers. Further community engagement can be found via issues and pull requests on GitHub.

Licensing & Compatibility

The repository does not explicitly state a license in the README. Users should verify licensing for commercial use or integration into closed-source projects.

Limitations & Caveats

Version 1 relies on reverse-engineered methods and may break if OpenAI changes its web interface or security measures. Plugin functionality in V1 may require prior installation via the web interface. The project is not an official OpenAI product.

Health Check
Last commit

2 years ago

Responsiveness

Inactive

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

Explore Similar Projects

Feedback? Help us improve.