Skip to content

IlyaGusev/saiga_bot

Repository files navigation

Saiga: Telegram bot

Description

This is a Telegram bot designed to interact with various language models. It offers support for system prompts and image processing capabilities.

Features

  • Integration with the Telegram platform
  • Support for any number of language models (compatible with OpenAI API format)
  • Ability to handle system prompts, generation parameters, and characters
  • Image processing and generation (with gpt-image-1)
  • Function calling with CodeAct (from smolagents)

Installation

To install and run the bot, follow these steps:

  1. Clone the repository:
git clone https://github.com/IlyaGusev/saiga_bot
  1. Navigate to the project directory:
cd saiga_bot
  1. Install the required dependencies:
uv venv
make install
  1. Add a token from @BotFather and an admin's user name and ID to configs/bot.json.
  2. Add URLs and tokens to configs/providers.json. Modify all other configs if needed.
  3. Run the bot with make serve
make serve

Or with an explicit command:

uv run python -m src.bot --bot-config-path configs/bot_prod.json --providers-config-path configs/providers.json --db-path db.sqlite --characters-path configs/characters.json --yookassa-config-path configs/yookassa.json --localization-config-path configs/localization.json --tools-config-path configs/tools_prod.json

Contact

For any questions or feedback, please open an issue on the GitHub repository or contact @YallenGusev.

About

Telegram bot for different language models. Supports system prompts and images

Topics

Resources

License

Stars

Watchers

Forks