unofficial-chatgpt-api  by taranjeet

Unofficial ChatGPT API for development purposes

Created 3 years ago
700 stars

Top 48.9% on SourcePulse

GitHubView on GitHub
Project Summary

This repository provides an unofficial API for interacting with ChatGPT, built for development purposes. It allows developers to integrate ChatGPT's capabilities into their applications without relying on official, potentially rate-limited or paid, APIs.

How It Works

The API leverages Playwright and Chromium to automate browser interactions. It opens a Chromium instance, navigates to the ChatGPT web interface, parses the HTML to extract responses, and exposes this functionality through a simple HTTP endpoint. This approach bypasses direct API calls by simulating user interaction.

Quick Start & Requirements

  • Install dependencies: pip install -r requirements.txt
  • Install Playwright browsers (one-time): playwright install
  • Run the server: python server.py
  • Requires Python and a virtual environment.

Highlighted Details

  • Single endpoint /chat for queries.
  • Uses Playwright and Chromium for browser automation.
  • Based on Daniel Gross's WhatsApp GPT script.

Maintenance & Community

The project is a personal undertaking with updates noted as of December 2022. There are no explicit links to community channels or roadmaps provided.

Licensing & Compatibility

The repository does not explicitly state a license. Given its unofficial nature and reliance on another project, compatibility with commercial or closed-source applications is not guaranteed and may be subject to the terms of service of the underlying ChatGPT web interface.

Limitations & Caveats

This is an unofficial project and is not affiliated with OpenAI. The reliance on browser automation and HTML parsing makes it potentially fragile to changes in the ChatGPT web interface, which could break the API without notice.

Health Check
Last Commit

2 years ago

Responsiveness

Inactive

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.1%
11k
All-in-one chatbot client
Created 2 years ago
Updated 1 month ago
Feedback? Help us improve.