Skip to content

🦙 Ollama Telegram bot, with advanced configuration

License

Notifications You must be signed in to change notification settings

physicalit/ollama-telegram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


🦙 Ollama Telegram Bot

Chat with your LLM, using Telegram bot!
🚧 Project is still WIP 🚧
Feel free to contribute!



Features

Here's features that you get out of the box:

  • Fully dockerized bot
  • Response streaming without ratelimit with SentenceBySentence method
  • Mention [@] bot in group to receive answer

Roadmap

  • Proper Docker Config (Broken at the moment)
  • Implement history [Bot can't remember more that 1 prompt]
  • Add more API-related functions
  • Redis DB integration

Prerequisites

Installation (Non-Docker)

  • Install latest Python
  • Clone Repository
git clone https://github.com/ruecat/ollama-telegram
  • Install requirements from requirements.txt
pip install -r requirements.txt
  • Enter all values in .env.example

  • Rename .env.example -> .env

  • Launch bot

python3 ollama-run.py

Installation (Docker)

Soon..

Environment Configuration

Parameter Description Required? Default Value Example
TOKEN Your Telegram bot token.
[How to get token?]
Yes yourtoken MTA0M****.GY5L5F.****g*****5k
ADMIN_IDS Telegram user IDs of admins.
These can change model and control the bot.
Yes 1234567890
OR
1234567890,0987654321, etc.
USER_IDS Telegram user IDs of regular users.
These only can chat with the bot.
Yes 1234567890
OR
1234567890,0987654321, etc.
INITMODEL Default LLM No llama2 mistral:latest
mistral:7b-instruct

Credits

Libraries used

About

🦙 Ollama Telegram bot, with advanced configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%