This is a discord bot that uses oobabooga's text-generation-webui as a backend to load a Large Language Model!
It loads character prompts from files and uses those character prompts to roleplay as those characters, generating responses for entertainment purposes. The characters will remember the most recent conversations that it has had and will be able to carry on a conversation based on that history, but each channel that this bot is in will have a separate chat history (and keep in mind that the person hosting the chatbot may be able to see your conversations, even in private DMs). More than one character can be activated per channel.
The chatbot currently assumes settings and models will be calibrated in the webui's backend.
This chatbot was written by Cadaeic, starting out as an edit to mercm8's fork of chat-llama-discord-bot, and will be under an open source license like MIT or AGPL (TODO). Some presets have been edited from SillyTavern.
WIP instructions:
- Download oobabooga's text-generation-webui and at least one model, and run the webui with the --api flag, making sure to set up the model
- Grab a discord bot token from the Discord Developer Portal with the following permissions: bot, send messages, send messages in threads, read messages/view channels, read message history, use slash commands
- Put the discord bot token into
config.yaml
- Run this bot with
python discordbot.py
in another terminal
- Gracefully detect lack of api or model
- easy bat file for installation and running
- possibly accept other backends?
- other example characters that aren't meme napoleon
- allow settings per character
- allow loading loras per character?
- continue button for generating text without a character