Skip to content

GPT telegram bot augmented with longevity knowledge using LangChain

License

Notifications You must be signed in to change notification settings

longevity-genie/longevitygpt_telegram_bot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LongevityGenie Telegram Bot:

This repo is a Telegram Bot providing access to ChatGPT and longevity-genie LangChain.

Based on karfly/chatgpt_telegram_bot which accessible as @chatgpt_karfly_bot

Features

  • GPT-3.5 and GPT-4 support
  • Group Chat support (/help_group_chat to get instructions)
  • Voice message recognition
  • Code highlighting
  • 2 chat modes: 👩🏼‍🎓 Assistant, 🧬 Longevity Genie. You can create your own chat modes by editing config/chat_modes.yml
  • Support of ChatGPT API
  • List of allowed Telegram users
  • Track $ balance spent on OpenAI API

Bot commands

  • /retry – Regenerate last bot answer
  • /new – Start new dialog
  • /mode – Select chat mode
  • /balance – Show balance
  • /settings – Show settings
  • /help – Show help

Setup

  1. Get your OpenAI API key

  2. Get your Telegram bot token from @BotFather

  3. Deploy longevity-genie

  4. Copy config/config.example.yml and config/config.example.env using 2 commands below

    cp config/config.example.yml config/config.yml
    cp config/config.example.env config/config.env
  5. Edit config/config.yml to set your tokens and run:

  6. 🔥 And now run:

    docker-compose --env-file config/config.env up --build

References

  1. Build ChatGPT from GPT-3

About

GPT telegram bot augmented with longevity knowledge using LangChain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.9%
  • Dockerfile 3.1%