Skip to main content

aitelegrambot is a Telegram bot that uses the Ollama backend to run the LLM rationalAI (by default).

Project description

Introduction

aitelegrambot is a Telegram bot that uses the Ollama backend to run the LLM rationalAI(by default). This bot is designed to provide access to the full capabilities of Ollama through Telegram, allowing users to interact with LLMs in a convenient and interactive manner.

Running the bot.

Setting up Ollama

To run this bot you need to get setup Ollama seperately, please find the tutorial at Ollama's github repository.

Getting a Telegram bot token

To obtain a Telegram bot token, you can request it from BotFather, the official bot management bot.

Setup the bot.

  1. Make sure your python is up-to date
  2. Install pipx

    For Debian and it's derivatives

    apt install pipx
    

    For ArchLinux and it's derivatives

    pacman -S python-pipx
    

    For Gentoo

    sudo emerge --sync
    sudo emerge --ask --update --deep --newuse @world
    sudo emerge --ask dev-python/pip
    sudo pip install pipx
    
    And finally, do to make sure its packages are on the path run,
    pipx ensurepath
    
  3. Open your terminal, and install aitelegrambot by running
    pipx install aitelegrambot
    
  4. make a .env file With the following contents:
TELEGRAM_BOT_TOKEN=tokenhere
DEFAULT_MODEL=defaultmodelhere
OLLAMA_HOST=ollamahosthere

You may omit DEFAULT_MODEL and OLLAMA_HOST, if you are going to use the default settings (OLLAMA_HOST being localhost:11434 and DEFAULT_MODEL being tusharhero/rationalai).

  1. Run the bot.
aitelegrambot

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

aitelegrambot-0.1.3.tar.gz (18.1 kB view details)

Uploaded Source

Built Distribution

aitelegrambot-0.1.3-py2.py3-none-any.whl (17.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file aitelegrambot-0.1.3.tar.gz.

File metadata

  • Download URL: aitelegrambot-0.1.3.tar.gz
  • Upload date:
  • Size: 18.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.7

File hashes

Hashes for aitelegrambot-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c80fdf11f1e9f2921c03f546ea8057dc14acdfdc7919a5da9e6b07760b4f3f8d
MD5 91ec011e98e0ec7ad808cf89ccd1c756
BLAKE2b-256 4a31e00bf8cd10e802166dcd37a858858ac5d0ca62f0e24576ecf97388a2846b

See more details on using hashes here.

File details

Details for the file aitelegrambot-0.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for aitelegrambot-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4e1bc087c3731c13c20327c0b0d499ad1234b577bf111687fb3faf4f279e1531
MD5 e9ec14b58aa961d22592f217c991b982
BLAKE2b-256 225c1fe5d5b624825e7f26f4e1609ab88048817ee9e6e08cc2b9b2ca7dc750f0

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