A simple mattermost bot that supports chatting with ChatGPT, Bing AI, Google Bard
Find a file
2024-01-05 21:28:47 +08:00
.github/workflows remove pylint check 2023-09-18 13:50:21 +08:00
src Make gptbot more compatible 2024-01-05 21:28:47 +08:00
.dockerignore fix: improve dockerignore 2023-09-20 10:08:13 +08:00
.env.example feat: refactor chat backend 2023-09-18 13:47:50 +08:00
.full-env.example feat: Expose more stable diffusion webui api parameters 2024-01-04 20:49:56 +08:00
.gitignore feat: refactor chat backend 2023-09-18 13:47:50 +08:00
.pre-commit-config.yaml Bump pre-commit hook version 2023-12-23 22:36:30 +08:00
CHANGELOG.md Make gptbot more compatible 2024-01-05 21:28:47 +08:00
compose.yaml feat: refactor chat backend 2023-09-18 13:47:50 +08:00
config.json.example feat: refactor chat backend 2023-09-18 13:47:50 +08:00
Dockerfile refactor code structure and remove unused 2023-08-06 12:09:40 +08:00
full-config.json.example feat: Expose more stable diffusion webui api parameters 2024-01-04 20:49:56 +08:00
LICENSE refactor code structure and remove unused 2023-08-06 12:09:40 +08:00
README.md Update demo pic 2023-12-24 20:39:50 +08:00
requirements.txt Fix localai v2.0+ image generation 2023-12-23 22:30:11 +08:00

Introduction

This is a simple Mattermost Bot that uses OpenAI's GPT API(or self-host models) to generate responses to user inputs. The bot responds to these commands: !gpt, !chat and !new and !help depending on the first word of the prompt.

Feature

  1. Support official openai api and self host models(LocalAI)
  2. Image Generation with DALL·E or LocalAI or stable-diffusion-webui

Installation and Setup

See https://github.com/hibobmaster/mattermost_bot/wiki

Edit config.json or .env with proper values

docker compose up -d

Commands

  • !help help message

  • !gpt + [prompt] generate a one time response from chatGPT

  • !chat + [prompt] chat using official chatGPT api with context conversation

  • !pic + [prompt] Image generation with DALL·E or LocalAI or stable-diffusion-webui

  • !new start a new converstaion

Demo

Remove support for Bing AI, Google Bard due to technical problems. gpt command image generation

Thanks

JetBrains Logo (Main) logo.