A simple mattermost bot that supports chatting with ChatGPT, Bing AI, Google Bard
Find a file
hibobmaster e0aff19905
Fix localai v2.0+ image generation
Support specific output image format(jpeg, png) and size
2023-12-23 22:30:11 +08:00
.github/workflows remove pylint check 2023-09-18 13:50:21 +08:00
src Fix localai v2.0+ image generation 2023-12-23 22:30:11 +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 Fix localai v2.0+ image generation 2023-12-23 22:30:11 +08:00
.gitignore feat: refactor chat backend 2023-09-18 13:47:50 +08:00
.pre-commit-config.yaml Update ruff-pre-commit 2023-09-18 13:58:53 +08:00
CHANGELOG.md v1.2.0 2023-09-20 09:54:28 +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 Fix localai v2.0+ image generation 2023-12-23 22:30:11 +08:00
LICENSE refactor code structure and remove unused 2023-08-06 12:09:40 +08:00
README.md feat: refactor image genderation backend 2023-09-18 15:24:38 +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.