/ChatGPT_Api

A Headless Chrome interface to communicate with ChatGPT

Primary LanguagePythonMIT LicenseMIT

ChatGPT_Api

Turn your ChatGPT account into an api! 🤖🚀

ChatGPT_Api is a versatile Python library that serves as an interface for seamless communication with ChatGPT, an large language model developed by OpenAI. 🤖💬

By leveraging the power of browser automation, this library enables users to effortlessly interact with ChatGPT, providing a streamlined and automated approach to generate responses. 🚀✨

This work is based on ChatGPT_Automation project.

Prerequisites 📋

Before you begin, please ensure that you have Chrome installed on your system. To successfully pass the Cloudflare robot test, it is necessary to have undetected-chrome. 🌐🔒

TODO

Code Understanding Auto segement functions in code Auto desciption of each function by LLM Create reference tree of each functions https://github.com/imartinez/privateGPT

Installation

git clone the repo

Usage

python api.py to start the server api, the flask api will run on localhost:5000 use sample client.py to send message to the api server.

Features

✅ Login via openai account

✅ Interact

✅ Start a new chat

✅ Regenerate response

✅ Reset thread

✅ Set custom interactions

✅ Switch model

Issues & Contribution

I would be happy to answer any questions or accept your contributions. Let me know in issues if you need anything.

Please indicate your issue with a tag enclosed by square brackets: [FEATURE], [BUG], [DOCUMENTATION], [QUESTION]. If you don't know what to write you can write [MISC].

There are some features I would like to add to this repository. If you would like to help, search in issues and select the one you would like to implement. Let everyone know you are working on it by commenting on the issue and I would be glad to review your pull request.