3281448091 / easyChatGPT

An unofficial yet elegant interface of the ChatGPT API using browser automation that bypasses cloudflare detection and recaptchas.
GNU General Public License v2.0
187 stars 24 forks source link
chatgpt gpt-3 gptchat library python reverse-engineering selenium

EasyChatGPT

License: GPL v3Maintenancemade-with-python

An unofficial yet elegant interface of the ChatGPT API using browser automation that bypasses cloudflare detection and recaptchas.

Features

Installation

You must install ffmpeg and ffprobe on your machine before running.

Install On Windows\ Install On Linux\ Install On MacOS

Install the official easyChatGPT package

pip install easychatgpt

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

OPENAI_EMAIL

OPENAI_PASSWORD

Copy the .env file and put in your openai email and password

cp .env.example .env

Usage / Demo

Simple Usage

from easychatgpt import ChatClient
import os
from dotenv import load_dotenv

load_dotenv()
OPENAI_EMAIL = os.getenv("OPENAI_EMAIL")
OPENAI_PASSWORD = os.getenv("OPENAI_PASSWORD")

chat = ChatClient(OPENAI_EMAIL,OPENAI_PASSWORD)

answer = chat.interact("Introduce your self")

print(answer)

More examples to look at

Acknowledgement

ChatGPT_Selenium\ PyPasser