A simple mattermost bot that supports chatting with ChatGPT, Bing AI, Google Bard
Find a file
2023-06-01 10:06:48 +08:00
.github/workflows Add code syntax check 2023-04-19 12:54:27 +08:00
.vscode release the bot 2023-04-18 01:16:03 +08:00
.dockerignore release the bot 2023-04-18 01:16:03 +08:00
.env.example feat: Support chatgpt web session isolation 2023-05-28 23:52:44 +08:00
.gitignore feat: Support chatgpt web session isolation 2023-05-28 23:52:44 +08:00
askgpt.py release the bot 2023-04-18 01:16:03 +08:00
bard.py release the bot 2023-04-18 01:16:03 +08:00
bing.py release the bot 2023-04-18 01:16:03 +08:00
BingImageGen.py release the bot 2023-04-18 01:16:03 +08:00
bot.py Fix crash caused by variable initialise 2023-06-01 10:06:48 +08:00
compose.yaml fix typo in compose.yaml 2023-05-30 10:42:09 +08:00
config.json.example Support chatting with chatGPT web 2023-05-28 21:38:28 +08:00
Dockerfile Add CI 2023-04-18 01:24:58 +08:00
LICENSE release the bot 2023-04-18 01:16:03 +08:00
log.py release the bot 2023-04-18 01:16:03 +08:00
main.py feat: Support chatgpt web session isolation 2023-05-28 23:52:44 +08:00
pandora.py fix lint 2023-05-28 23:57:12 +08:00
README.md feat: Support chatgpt web session isolation 2023-05-28 23:52:44 +08:00
requirements.txt release the bot 2023-04-18 01:16:03 +08:00
v3.py release the bot 2023-04-18 01:16:03 +08:00

Introduction

This is a simple Mattermost Bot that uses OpenAI's GPT API and Bing AI and Google Bard to generate responses to user inputs. The bot responds to these commands: !gpt, !chat and !bing and !pic and !bard and !talk and !goon and !new and !help depending on the first word of the prompt.

Feature

  1. Support Openai ChatGPT and Bing AI and Google Bard
  2. Support Bing Image Creator
  3. pandora with Session isolation support

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
  • !bing + [prompt] chat with Bing AI with context conversation
  • !bard + [prompt] chat with Google's Bard
  • !pic + [prompt] generate an image from Bing Image Creator

The following commands need pandora http api: https://github.com/pengzhile/pandora/blob/master/doc/wiki_en.md#http-restful-api

  • !talk + [prompt] chat using chatGPT web with context conversation
  • !goon ask chatGPT to complete the missing part from previous conversation
  • !new start a new converstaion

Demo

demo1 demo2 demo3

Thanks

JetBrains Logo (Main) logo.