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.
- Make sure your python is up-to date
- Install pipx
For Debian and it's derivatives
apt install pipx
For ArchLinux and it's derivatives
pacman -S python-pipx
For Gentoo
And finally, do to make sure its packages are on the path run,sudo emerge --sync sudo emerge --ask --update --deep --newuse @world sudo emerge --ask dev-python/pip sudo pip install pipx
pipx ensurepath
- Open your terminal, and install aitelegrambot by running
pipx install aitelegrambot
- 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
).
- Run the bot.
aitelegrambot
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c80fdf11f1e9f2921c03f546ea8057dc14acdfdc7919a5da9e6b07760b4f3f8d |
|
MD5 | 91ec011e98e0ec7ad808cf89ccd1c756 |
|
BLAKE2b-256 | 4a31e00bf8cd10e802166dcd37a858858ac5d0ca62f0e24576ecf97388a2846b |
File details
Details for the file aitelegrambot-0.1.3-py2.py3-none-any.whl
.
File metadata
- Download URL: aitelegrambot-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 17.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e1bc087c3731c13c20327c0b0d499ad1234b577bf111687fb3faf4f279e1531 |
|
MD5 | e9ec14b58aa961d22592f217c991b982 |
|
BLAKE2b-256 | 225c1fe5d5b624825e7f26f4e1609ab88048817ee9e6e08cc2b9b2ca7dc750f0 |