Slavi Pantaleev 3d3bd3c9f9 Add support for file attachments (m.file) in conversations
Files sent as m.file Matrix messages are now downloaded, MIME-detected,
and forwarded to LLM providers alongside the conversation context,
similar to how m.image is already handled.

- OpenAI provider: sends files inline as base64 data URLs
- Anthropic provider: skips files with a warning (library limitation)
- OpenAI-compat provider: skips files with a warning (library limitation)

Controller routing respects the existing prefix requirement setting.
MIME detection expanded to cover PDF, text, code, and document formats.
Docs updated to reflect file support and known limitations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 12:22:38 +02:00
2024-09-12 13:44:06 +03:00
2024-09-12 13:44:06 +03:00
2024-09-12 13:44:06 +03:00
2026-03-07 11:13:42 +02:00
2024-09-12 13:44:06 +03:00

baibot logo

baibot

🤖 baibot is an AI (Large Language Model) bot for Matrix built by etke.cc (managed Matrix servers).

The name is pronounced 'bye'-bot and is a play on AI, referencing the fictional character 🇧🇬 Bai Ganyo.

It's designed as a more private and featureful alternative to matrix-chatgpt-bot. It's influenced by chaz, but does not use the AIChat CLI tool and instead does everything in-process, without forking.

🌟 Features

🖼️ Screenshots

Introduction and general usage

You can find more screenshots on the 🌟 Features and other 📚 Documentation pages, as well as in the docs/screenshots directory.

🚀 Getting Started

🗲 For a quick experiment, you can refer to the 🧑‍💻 development documentation which contains information on how to build and run the bot (and its various dependency services) locally.

For a real installation, see the 🚀 Installation documentation which contains information on 🐋 Running in a container and 🖥️️️️️ Running a binary.

📚 Documentation

See the bot's 📚 documentation for more information on how to use and configure the bot.

💻 Development

See the bot's 🧑‍💻 development documentation for more information on how to develop on the bot.

📜 Changes

This bot evolves over time, sometimes with backward-incompatible changes.

When updating the bot, refer to the changelog to catch up with what's new.

🆘 Support

Description
BaiBot, but with MCP added in (yes, it's vibecoded. womp womp)
Readme AGPL-3.0 4.4 MiB
Languages
Rust 97.6%
Just 2%
Shell 0.2%
Dockerfile 0.2%