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

Uploaded Source

Built Distribution

aitelegrambot-0.1.1-py2.py3-none-any.whl (17.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: aitelegrambot-0.1.1.tar.gz
  • Upload date:
  • Size: 17.9 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.1.tar.gz
Algorithm Hash digest
SHA256 7d06ec39202b9569b50e6add5d7d1f780c4524c37883993d66eb0b96c4192f75
MD5 a61f2273e8793021bbb6f15484d7fe58
BLAKE2b-256 4045ddb519fa707d2af489d572320e76d5cdd2d64c403ec299a202119fe630c9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aitelegrambot-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 73d7d0cbee23d9786b8cb8ae7e9b74e572a20934a4f0524657581c485f29f3aa
MD5 f015e6214ec697844922138dd72f2175
BLAKE2b-256 8401de20a523aba308e693377a11a830efcc518ad4097c39c073e63af039e715

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