A simple mattermost bot that supports chatting with ChatGPT, Bing AI, Google Bard
| .github/workflows | ||
| src | ||
| .dockerignore | ||
| .env.example | ||
| .full-env.example | ||
| .gitignore | ||
| .pre-commit-config.yaml | ||
| CHANGELOG.md | ||
| compose.yaml | ||
| config.json.example | ||
| Dockerfile | ||
| full-config.json.example | ||
| LICENSE | ||
| README.md | ||
| requirements.txt | ||
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
- Support official openai api and self host models(LocalAI)
- 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
-
!helphelp 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 -
!newstart a new converstaion
Demo
Remove support for Bing AI, Google Bard due to technical problems.

Thanks