Skip to main content

PyPi PyPi

chatgpt-mixin

Demo

Demo bot: 7000101691

Installation

on unix like platform, install chatgpt-mixin with the following command:

python3 -m pip install -U chatgpt-mixin

on the Windows platform, use the following command to install chatgpt-mixin:

python -m pip install -U chatgpt-mixin

Install chatgpt-mixin with the support of accessing openai model in a browser:

python3 -m pip install -U chatgpt-mixin[browser]
playwright install firefox

configuration

First, you need to create a mixin bot from developers.mixin.one. And then under the Secret tab, click Ed25519 session to generate an App Session configuration.

To get started, you will need at least one ChatGPT account. If you don't have one already, you can create an account at chat.openai.com. Additionally, you can create an api key at platform.openai.com/account/api-keys."

After that, you can start this bot with the following command:

python3 -m chatgpt_mixin bot-config.yaml

which bot-config.yaml contains mixin bot configuration and chatgpt accounts as shown below.

bot_config:
  pin: ""
  client_id: ""
  session_id: ""
  pin_token: ""
  private_key: ""
openai_api_keys: []
accounts:
 - user: ""
   psw: ""

bot_config section specify mixin bot configure. openai_api_keys section specify openai api keys. accounts section specify chatgpt test accounts. user field can not be empty, but you can leave psw to empty. If it is left empty, the user will need to manually enter the password upon login. Multiple accounts can be specified in the accounts section to improve ChatGPT responses. You can leave accounts section to empty if you only need to access openai models with openai_api_keys.

If you are running a bot of accessing model via browser in a server, you need to install Xvfb on the server, and use VNC at the client side to connect to Xvfb. For more information, refer to Remote_control_over_SSH.

On the first time you start this bot, automated processes such as auto-filling of account names and passwords will be carried out, but you will still need to manually solve CAPTCHAs during the login process.

Helpfull Commands

This is a list of helpful commands to use with the bot.

/role

The /role command is used to get or set the role of the bot.

Set role

To set the role of the bot, use the following format:

Usage:

/role <role description>

Example:

/role You are a helpful assistant

Get role

To get the current role of the bot, use the following command:

/role

The bot will respond with the current role.

/reset_role

The /reset_role command is used to reset the role of the bot to the default role.

Usage:

/reset_role

/reset

The /reset command is used to clear the context of the bot.

Usage:

/reset

These commands should help you better interact with the bot.

Acknowledgements

Release files for chatgpt-mixin 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chatgpt-mixin 0.1.8
File Size Uploaded
chatgpt-mixin-0.1.8.tar.gz 15.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chatgpt-mixin 0.1.8
File Interpreter ABI Platform
chatgpt_mixin-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size:33.0 kB

Release files / chatgpt-mixin-0.1.8.tar.gz

Download URL chatgpt-mixin-0.1.8.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a6acf419392b1571f6043a18dac5541d896cb540d81355f21e24f0a3b392ec97
BLAKE2b-256 checksum
How to use checksums
6abfb851e0eeb1f0eefabb0373a0514bb2b9d285014ee5c7595a78c237be4e17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release files / chatgpt_mixin-0.1.8-py3-none-any.whl

Download URL chatgpt_mixin-0.1.8-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d435cc1e794b17133ea7d37a1a4d7285f50a9c58ea692c103c6d4c06f389d331
BLAKE2b-256 checksum
How to use checksums
b859a0e19ea5d32d98c6b70830ceab3fefed30fb535fa4944b6288d3e4f96d67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.11.3

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page