Skip to content

🤖 ChatBot/Assistant|🧀 通用事件层/IM/Muti Platform |Async | 👋 Supports continuous conversations | ⚡sh&docker ️deploy| 📦Provide Api Server|🎤 Azure/Vits Voice Chat | 📡Network Support| 🌻Voice Wake Assistants | (Waiting ChatGPT)

License

Notifications You must be signed in to change notification settings

aiastia-dockerhub/Openaibot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenaiBot/LLMBot

Docker Image Size (tag) Docker Image Version (latest semver) docker workflow

Telegram Discord

中文手册

LLMBot is a message queue based IM Bot developed around the concept of an intelligent robot assistant that can be loaded with plugins to perform many functions. Implemented with Openai's new Feature gpt-function-call support.

Unlike previous projects, this project tries to replicate ChatGpt's plugin system based on the messaging platform, implementing some or more features.

Because func call is a feature, it only supports Openai type api, and does not intend to support LLM without func call.

📦 Feature

  • 🍪 Call a number of pre-defined functions in natural language.
  • 📝 Messaging system, define send receivers and data can be delivered to the llm chain.
  • 📎 Subscription system, which can subscribe to multiple senders in addition to paired senders, with push functionality.
  • 📦 Non-question-and-answer binding, unlimited time and unlimited sender triggered response.
  • 📬 Customizable ApiKey and Endpoint, traceability of sender authentication info.
  • 🍾 Easy Interactive Experience.
  • 🎵 Fine-grained consumption data storage, statistics on plugin credit consumption.

🧀 Preview of some plugins

Sticker Converter Timer Func Translate
sticker timer translate

📝 Deployment Guide

Make sure your system is UTF8, dpkg-reconfigure locales

Docker

docker-compose -f docker-compose.yml -p llmbot up -d llmbot --compatibility

PM2

apt install npm
npm install pm2 -g
pm2 start pm2.json

Shell

  • (Optional) Resolving conflicts

    pip uninstall llm-kira

  • 🛠 Configure the .env file

cp .env.example .env
  • ⚙️ Install dependencies
pip install -r requirements.txt
  • 🗄 Configure the database environment
# Install Redis
apt-get install redis
systemctl enable redis.service --now
# Install RabbitMQ
docker pull rabbitmq:3.10-management
docker run -d -p 5672:5672 -p 15672:15672 \
        -e RABBITMQ_DEFAULT_USER=admin \
        -e RABBITMQ_DEFAULT_PASS=admin \
        --hostname myRabbit \
        --name rabbitmq \
        rabbitmq:3.10-management 
docker ps -l
  • ▶️ Run
python3 start_sender.py
python3 start_receiver.py

Basic commands

help - help
chat - chat
task - task
tool - tool list
bind - bind optional platforms
unbind - unbind optional platforms
clear - Delete your own records
rset_endpoint - customize the backend
rset_key - set openai
clear_rset - wipe custom settings

💻 How to develop?

For plugin development, please refer to the sample plugins in the plugins directory.

🤝 How can I contribute?

Feel free to submit a Pull Request, we'd love to receive your contribution! Please make sure your code conforms to our code specification and include a detailed description. Thank you for your support and contribution! 😊😊

About

🤖 ChatBot/Assistant|🧀 通用事件层/IM/Muti Platform |Async | 👋 Supports continuous conversations | ⚡sh&docker ️deploy| 📦Provide Api Server|🎤 Azure/Vits Voice Chat | 📡Network Support| 🌻Voice Wake Assistants | (Waiting ChatGPT)

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.9%
  • Shell 2.8%
  • Dockerfile 0.3%