matrixgpt / matrix-chatgpt-bot

Talk to ChatGPT via any Matrix client!
GNU Affero General Public License v3.0
234 stars 63 forks source link

Responses in threads don't work #133

Closed kitzler-walli closed 10 months ago

kitzler-walli commented 1 year ago

When I set MATRIX_THREADS=true and CHATGPT_CONTEXT=thread I get the response from the bot in a thread, but when I reply within the thread the bot never recognises the answer and therefore never triggers a response from ChatGPT. Is that a problem with my locally hosted matrix instance or with the chatbot?

ReggieMarr commented 1 year ago

Is this on element web ? Its working for me in element mobile but not web. I'm using dendrite though.

Dual-0 commented 1 year ago

It is working on my synapse instance. I use element web/android.

Jasonthefirst commented 1 year ago

For me it is neither working on element android nor on element web. Nothing happens if I respond to the thread. This is on a local self hosted matrix synapse instance.

Jasonthefirst commented 1 year ago

I couldn't find a solution to the problem but it works with a prefix. So I chose a really short prefix and then it will also answer in threads. Apparently it won't react to messages in Threads without a prefix trigger.

kitzler-walli commented 6 months ago

There were a few months now that this worked just fine without trigger in threads but the latest version once again has this issue. I can chat with the bot, the answer is delivered in thread but every reply within the thread is ignored.

bertybuttface commented 6 months ago

Latest as it master or as in release version? This is likely related to #241 I don't use the bot any more so I rely on users to test their pull requests before merging. Try reverting that PR and see if you get anywhere.

kitzler-walli commented 6 months ago

Latest release version 3.1.4

MATRIX_DEFAULT_PREFIX= MATRIX_DEFAULT_PREFIX_REPLY=false CHATGPT_CONTEXT=thread MATRIX_THREADS=true

kitzler-walli commented 6 months ago

I was able to get more details - this only fails in public rooms where the bot is joined. If I create a private chat with the bot then the responses in the threads work.

bertybuttface commented 6 months ago

Thanks for the info, did you try reverting that PR?