Skip to main content

A Discord bot plugin to oobabooga's text-generation-webui, based on oobabot.

Project description

Oobabot-plugin

oobabot is a Discord bot which talks to a Large Language Model AIs (like LLaMA, llama.cpp, etc...), running on oobabooga's text-generation-webui.

This is a plugin which allows oobabot to run from within the text-generation-webui server, and offer a web interface to the bot.

python lint and test with poetry

Installation

  1. Install oobabooga/text-generation-webui, and get a model running on it.

  2. from a command prompt, activate the same conda environment you used to install text-generation-webui, and install the plugin from PyPi:

    conda activate textgen
    pip install oobabot-plugin
    
  3. Then just run this to create the oobabot plugin directory (./extensions/oobabot) and install the plugin's hook (script.py) into the Oobabooga server:

    oobabot-plugin install
    
  4. Finally. restart the Oobabooga enabling the both the oobabot plugin and the API plugin. E.g.:

    python server.py --extensions api oobabot
    

    Hopeful success! You should now see a new "oobabot" plugin under the "interface mode" tab.

Preview

image

Motivation

There are a number of Discord bots which can talk to a Large Language Model AI, but many take a lot of setup. I think this technology is amazing, and I want to make it easy for anyone to experience it by running their own bot, which they can own and customize to their own needs.

If you have any issues, suggestions, or comments, please file an issue in github Have fun!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oobabot_plugin-0.2.2.tar.gz (25.7 kB view details)

Uploaded Source

Built Distribution

oobabot_plugin-0.2.2-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

Details for the file oobabot_plugin-0.2.2.tar.gz.

File metadata

  • Download URL: oobabot_plugin-0.2.2.tar.gz
  • Upload date:
  • Size: 25.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Darwin/22.4.0

File hashes

Hashes for oobabot_plugin-0.2.2.tar.gz
Algorithm Hash digest
SHA256 9c4911a3edfff28550054ead539a8e800f44366fe35adc195f64fbed9cd74002
MD5 c92c7731f07d71e6a5d844dca2396bb0
BLAKE2b-256 190f95dd6ce4fc46a596e3d68b2bf714aa9fe0385ff8a1ed3888bdfb91f53377

See more details on using hashes here.

File details

Details for the file oobabot_plugin-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: oobabot_plugin-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.3 Darwin/22.4.0

File hashes

Hashes for oobabot_plugin-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ee318586bba593d2432f6fa368eb0b1e90210924a509e30c1f2fc67d55a4a65
MD5 22f103fb8aec125d5dc0015233d6ec9c
BLAKE2b-256 055a67ffa70aa0074e16f458a19adca9f2e5a0fc1846d0af686ad5d2f19296a7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page