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.2.tar.gz (19.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

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

File hashes

Hashes for aitelegrambot-0.1.2.tar.gz
Algorithm Hash digest
SHA256 70127cd6194b11ec9b2ef1960b4285fb6c4365b0b9f166ff2458e878d915f37e
MD5 ee9145050c00c62ad018a4795b6da800
BLAKE2b-256 1169a556553a1fc4d68040ac01371979a42f1b4e513c3ea9f7eb4f0c95e1bcd7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aitelegrambot-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6e54d6a213a913d1e5da0a18d2b354207a9c07668a50cc2a91062bdb5c1d5ea9
MD5 758bb378c3ea4dfc03ac834536bde846
BLAKE2b-256 2a976d05f505cb2d92aa46d3c32bfa2abd5af074d693f8cebfc9302ad9c48322

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