unofficial-chatgpt-api  by taranjeet

Unofficial ChatGPT API for development purposes

created 2 years ago
697 stars

Top 49.8% 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

1 day

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

Explore Similar Projects

Feedback? Help us improve.