yGuy / chatgpt-mattermost-bot

A very simple implementation of a service for a mattermost bot that uses ChatGPT in the backend.
MIT License
150 stars 48 forks source link

Critical Bug: Bot sometimes reads and replies to unrelated messages #50

Closed yGuy closed 1 year ago

yGuy commented 1 year ago

This still needs some investigation, but it seems that the bot replies to arbitrary messages that are posted by the person who initially invited the bot into a channel, even outside of the thread that it had been invited to.

This is a severe problem, likely introduced with the refactorings in 2.0.0.

I would recommend sticking with the 1.x version until this has been resolved, unless you are OK with the bot sometimes replying (and thus sending your input to OpenAI).

Note that OpenAI will not use this data for training data, but possibly sensitive chat data might still be sent to OpenAI. Check their data processing rules to find out if this is problem for you. If so: revert to 1.x or disable the bot - removing it from a channel should also make it technically impossible for the bot to process and react to the messages in the channel.

Note that you can notice when this happens, because the bot always reacts when it reads messages and sends contents to OpenAI. So if you do not see spurious replies, you are not affected by this issue.

yGuy commented 1 year ago

If someone can help with the debugging, that would be awesome - it's likely a bug in the main message collection loop and logic.