Chatbots for Matrix.
Go to file
Cyberes c62ef40a07 change name 2023-03-18 15:24:15 -06:00
matrix_gpt change name 2023-03-18 15:24:15 -06:00
.gitignore add system prompt 2023-03-18 13:32:04 -06:00
LICENSE Initial commit 2023-03-17 20:11:13 -06:00
README.md readme 2023-03-18 14:17:54 -06:00
config.sample.yaml change name 2023-03-18 15:24:15 -06:00
main.py change name 2023-03-18 15:24:15 -06:00
matrixgpt.service service 2023-03-18 02:41:29 -06:00
requirements.txt add code 2023-03-18 02:14:45 -06:00

README.md

MatrixGPT

ChatGPT bot for Matrix.

Uses code from anoadragon453/nio-template.

Install

sudo apt install libolm-dev gcc python3-dev
pip install -r requirements.txt

Copy config.sample.yaml to config.yaml and fill it out with your bot's auth and your OpenAI API key.

Then invite your bot and start a chat by prefixing your message with !c. The bot will create a thread (you don't need to use !c in the thread).

I included a sample Systemd service.

Encryption

This bot supports encryption. I recommend using Pantalaimon to manage encryption keys as the built-in solution is a little janky and may be unreliable. If you want a private DM with the bot I recommend creating a new room without encryption.