百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
D

discord-ollama

> DevOps
开源

一个使用 Ollama 与任何大型语言模型进行交互的 Discord Bot,可与用户交谈并允许他们主持/创建自己的模型。

191 stars0 点赞3 次浏览
访问官网GitHub

工具介绍

一个使用 Ollama 与任何大型语言模型进行交互的 Discord Bot,可与用户交谈并允许他们主持/创建自己的模型。

About/Goals

Ollama is an AI model management tool that allows users to install and use custom large language models locally.
The project aims to:

  • Create a Discord bot that will utilize Ollama and chat to chat with users!
    • User and Server Preferences
    • Message Persistance
    • Containerization with Docker
    • Slash Commands Compatible
      • Summary Command
      • Model Info Command
      • List Models Command
      • Pull Model Command
      • Switch Model Command
      • Delete Model Command
      • Create Thread Command
      • Create Private Thread Command
      • Message Stream Command
      • Change Message History Size Command
      • Clear Channel History Command (User Only)
      • Administrator Role Compatible
    • Generated Token Length Handling for >2000
      • Token Length Handling of any message size
    • Multi-User Chat Generation - This was built in from Ollama v0.2.1+
    • Ollama Tool Support Implementation
    • Enhanced Channel Context Awareness
    • Improved User Replied Triggers

Further, Ollama provides the functionality to utilize custom models or provide context for the top-layer of any model available through the Ollama model library.

  • Customize a model
  • Modelfile Docs

Documentation

These are guides to the features and capabilities of this app.

  • User Slash Commands
  • Client Events

Environment Setup

  • Clone this repo using git clone https://github.com/kevinthedang/discord-ollama.git or just use GitHub Desktop to clone the repo.
  • You will need a .env file in the root of the project directory with the bot's token. There is a .env.sample is provided for you as a reference for what environment variables.
    • For example, CLIENT_TOKEN = [Bot Token]
    • The LLM server is configured with LLM_ENDPOINT / LLM_PORT (OLLAMA_IP / OLLAMA_PORT still work as deprecated aliases).
  • Please refer to the docs for bot setup.
    • Creating a Discord App
    • Local Machine Setup
    • Docker Setup for Servers and Local Machines
      • Nvidia is recommended for now, but support for other GPUs should be development.
      • Local use is not recommended.

Resources

  • NodeJS
    • This project runs on lts\jod and above.
    • This project requires the use of npm version 10.9.0 or above.
  • Ollama
    • Ollama Docker Image
    • llmman also serves the Ollama API (on port 17434) and can be used in its place, see Local Machine Setup.
  • Discord.js Docs
  • Setting up Docker (Ubuntu 20.04)
    • Setting up Nvidia Container Toolkit

Acknowledgement

  • Kevin Dang
  • Jonathan Smoley

discord-ollama © 2023 by Kevin Dang is licensed under CC BY 4.0

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptdiscorddiscord-botdiscord-jsdocker

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理