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

Bot replies twice - Duplicate response #64

Closed tirthpatell closed 11 months ago

tirthpatell commented 11 months ago

Suddenly the bot has started responding twice to the same query. As shown in the images below

IMG_3479

IMG_3480

yGuy commented 11 months ago

What happens when you stop it? Do you still get one response? Might be another instance running... Other than that, if you restart it and the problem goes away than this could indicate that for some reason there are two "listeners" reacting to your input. Obviously it's not just twice the same answer, but two answers to the same question.

You can turn on logging and inspect the log file to see what happens, too.

My bet is that you are running two bot service instances.

tirthpatell commented 11 months ago

Yep, you were right. My Unraid server restarted yesterday and another instance was created of it. Thanks for quick reply and solution!