Giter Site home page Giter Site logo

discord-bot-omni's Introduction

discord-bot-omni

General

This is a dicords bot that is connceted to an Local LLM of your choice, via the oobabooga API. As for now the bot is able to respond to messages that are send via !omni.

Further Development

The bot is still in development and will be able to do more things in the future.

TODO

  • Add RAG-functionality via llamaindex

Setup

To get started you need to create a bot within the discord developer portal and get the token. This can be done by following the steps in the Discord Developer Portal.

After you have the token you need to create a .env file in the root directory of the project and add the following line:

DISCORD_API_TOKEN = "YOUR_TOKEN"

oobabooga API

Now you need to get oobabooga text-generation-webui running on your local machine. You can find the repository here. follow the instructions in the README on how to set it up. To get the API running you need to run the following command:

bash start_linux.sh --api --listen --trust-mode-remote-code --verbose

By default the API will run on http://localhost:5000. The --trust-mode-remote-code is needed for specific models for example microsoft/Phi-3-mini-4k-instruct model needs it.

Load Model

Load a model within the webui for more on that read the README of the text-generation-webui.

Run

know you can run the bot by running the following command:

python basic_dico_bot.py

Usage

Within the discord server you can now send !omni and the bot will respond with a generated text from the oobabooga API.

discord-bot-omni's People

Contributors

atomic95 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.