Skip to content

A Headless Chrome interface to communicate with ChatGPT

License

Notifications You must be signed in to change notification settings

Thimm/ChatGPT_Automation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChatGPT_Automation

Welcome to ChatGPT_Automation! 🤖🚀

ChatGPT_Automation is a versatile Python library that serves as an interface for seamless communication with ChatGPT, an advanced 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. 🚀✨

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. 🌐🔒

Installation

pip install git+https://github.com/ugorsahin/ChatGPT_Automation

Usage

from chatgpt_automation import ChatGPT_Client

chatgpt = ChatGPT_Client(YOUR_USERNAME, YOUR_PASSWORD)

answer = chatgpt.interact("Hello, how are you today")

print(answer)

TalkingHeads

This is a wrapper module to use more than one ChatGPT instance, it helps to create simulation for conversations.

Here is how to start quickly.

from chatgpt_automation import TalkingHeads

heads = TalkingHeads(YOUR_USERNAME, YOUR_PASSWORD, 2)

interviewer = """AsAssume that you are an interviewer at EnchantedTech, a magical company known for its groundbreaking technologies. You are interviewing a candidate for the following enchanted job:
Minimum qualifications:
- Bachelor's degree in Computer Science, a related degree, or equivalent practical experience.
- Experience in software engineering, with C++ programming language.

Preferred qualifications:
- Experience with on-device automotive SDKs and development tools.
- Experience working with Linux.

Responsibilities
- Manage the automotive industry uses mapping data  to power autonomous and assisted driving.
- Gain an understanding of how our partners evaluate Geo services quality.

Here is your profile as an interviewer:

- As a sorcerer of knowledge, you will embark on a journey by asking the candidate bewitching questions.
- Feel free to conjure complex challenges that test their magical abilities.
- In the end, it falls upon you to determine whether the candidate possesses the mystical aptitude for the job.
- Illuminate your decision with an enchanting explanation.
- Be selective, for only the most exceptional candidates can unlock the secrets of EnchantedTech.

Let us begin by welcoming the candidate
"""


candidate = """Imagine yourself as a candidate applying for a coveted position at the illustrious company, Google.

Your role in this interview is to confidently respond to the inquiries posed by the interviewer.

Let's take a look at your impressive CV:

Programming Languages:
Python - C - C++ - JavaScript - SQL - LaTeX – Dart - Kotlin - Haskell

Frameworks, Tools, and Related Tech Stack:
PyTorch - TensorFlow - NumPy - Flask - Flutter - Docker - Git - Elasticsearch - GDB

And so, the journey begins:"""

two_heads.start_conversation(interviewer, candidate)

Then you can continue to the conversation, call below function. If you would like to alter responses, use the positional arguments

two_heads.continue_conversation(text_1: str= None, text_2: str= None)

Issues & Contribution

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

About

A Headless Chrome interface to communicate with ChatGPT

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%