Skip to main content

A library to communicate with AI assistants such as ChatGPT, Claude, Copilot, Gemini, HuggingChat, and Pi, and enabling multiagent interactions between them.

Project description

TalkingHeads ๐Ÿ’ฌ

TalkingHeads Documentation

CircleCI Build Status PyPI version Licence: MIT Documentation Status CodeQL Status Code style: black

Welcome to TalkingHeads! ๐Ÿ’ฌ

TalkingHeads is a Python library that serves as an interface for seamless communication with ChatGPT, Claude, Copilot, Gemini, LeChat, HuggingChat, and Pi ๐Ÿค–

By leveraging the power of browser automation, this library enables users to effortlessly interact with online chat agents ๐Ÿš€โœจ

You can utilize more than one agent by using multiagent module, and improve your workflow with an ensemble of models!

Prerequisites ๐Ÿ“‹

  • Install Chrome
  • Register to the provider you would like to use (or not, and use Pi!)

Installation

pip install talkingheads

or from source:

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

Usage

from talkingheads import PiClient

chathead = PiClient()

response = chathead.interact("Hello, how are you today")

print(response)

Features

Features Claude ChatGPT Copilot Gemini LeChat HuggingChat Pi
Use without login โŒ โŒ โœ… โŒ โŒ โŒ โœ…
Login* โž– โœ… โž– โž– โœ… โœ… โž–
Interact โœ… โœ… โœ… โœ… โœ… โœ… โœ…
New Chat โœ… โœ… โœ… โœ… โœ… โœ… โœ…
Regenerate Response โœ… โœ… โŒ โœ… โŒ โŒ โŒ
Custom Interactions โŒ โœ… โŒ โŒ โŒ โŒ โŒ
Search Web โŒ โŒ โœ… โŒ โŒ โœ… โŒ
Plugins โŒ โŒ โœ… โŒ โŒ โŒ โŒ
Switch Model โŒ โœ… โœ…** โŒ โœ… โœ… โœ…
Multimodal (Visual) โœ… โž–*** โœ… โœ… โŒ โŒ โŒ

โœ… (Auto) Save the conversation as csv, h5, html, json, orc, pkl, xlsx, xml

  • โœ… : Functionality exists and implemented
  • โŒ : Functionality does not exist
  • โž– : Fuctionality exists but not implemented

* You should use a user profile and login manually to use Gemini, Claude and Copilot.Please take a look at documentation and FAQ to set up a user profile.

** The modes of Copilot (Creative, Balanced and Precise) are accessible with model switch. However, it is unclear if they are different models.

*** ChatGPT has multimodality, but only for premium users, donate me a premium account if you need that to be implemented!

Issues & Contribution

Feel free to dive in, share your knowledge, and collaborate. I would be happy to answer any questions or accept your contributions. Let me know in issues if you need anything.

Enhancing our documentation would be fantastic and appreciated. Help me improve documentation with your valuable contributions. 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]. I will prioritize issues with tags.

Where is old ChatGPT_Automation library?

You can still run your code to connect ChatGPT, follow the below tutorial

export ChatGPT_UNAME=<your@email>
export ChatGPT_PWD=><password>
from talkingheads import ChatGPTClient

chathead = ChatGPTClient()

response = chathead.interact("Hello, how are you today")

print(response)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

talkingheads-0.5.4.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

talkingheads-0.5.4-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file talkingheads-0.5.4.tar.gz.

File metadata

  • Download URL: talkingheads-0.5.4.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for talkingheads-0.5.4.tar.gz
Algorithm Hash digest
SHA256 3f3a113e793a31fd32c683d6387b17f96f0d59d24a290dd43d23592a97190740
MD5 91290e0f0305aefb1342d610bfd056fe
BLAKE2b-256 410bdcc40d3856a1472563d9d1b098881dcc8518ae9cb853c12e6bfd4f515ecc

See more details on using hashes here.

File details

Details for the file talkingheads-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: talkingheads-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for talkingheads-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ddcdfc42b90f3f245d2aa305f564f54de9a9de854cbe67a11f74220847d0c4da
MD5 8bf3a4f56dd20efe37c24db2b5b3dd1d
BLAKE2b-256 826acdfa32b30debbe7d3058dc3efc516fa0dc248116c8884d05b339bfce1d55

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page