Skip to content
프로젝트

소개

Discord Bot that utilizes Ollama to interact with any Large Language Models to talk with users and allow them to host/create their own models.

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

ollama+discord

Discord Ollama Integration

Ollama as your Discord AI Assistant

License Release Builds Tests

About

Discord Ollama is a Discord bot that lets users interact with locally hosted Ollama language models directly from Discord.

The bot supports model management, streamed responses, conversation history, private threads, and configurable server controls. Because Ollama runs locally, you retain control over the models and data used by the bot.

See the setup guides to get started.

Documentation

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

Logging

The application uses Pino child loggers with structured component metadata. Outside production, pino-caller adds the source file and line to each log entry. Set LOG_LEVEL to configure the minimum level (defaults to info).

import { createLogger } from './components/index.js'

const logger = createLogger({ component: 'request', requestId })
logger.info('Request started')

Log entries are JSON and include the structured fields provided to the log method, along with component and (outside production) caller. The root Pino instance is shared; create one child when entering a context, then pass that same child logger through the context's work. Create another child only when you need to add more scoped bindings; child creation does not mutate its parent.

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.

Resources

Acknowledgement

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

관련 프로젝트 살펴보기

불러오는 중…