hibobmaster / matrix_chatgpt_bot

A simple matrix bot that supports image generation and chatting using ChatGPT, Langchain
https://matrix.to/#/@lullap:envs.net
MIT License
79 stars 16 forks source link

missing error messages in Bing Image Creator #21

Closed jaodei closed 1 year ago

jaodei commented 1 year ago

Hi,

Today when I tested on the bing image creator bot, I saw some of my prompts were blocked by bing after checking with the log info ("Your prompt has been blocked by Bing. Try to change any bad words and try again.") However, there is no such message in Matrix/element UI. I am wondering if it's possible to pass the errors back to the users so that they can know what happened when there was no output at all after timeout?

Also it seems that an error of "Redirect failed" might be due to expired _U cookie, which is not shown either in the user interface.

Not sure if other errors might occur, such as "Could not get results", "Bad images", "No images" etc. defined in file BingImageGen.py.

Cheers.

hibobmaster commented 1 year ago

Done! image

hibobmaster commented 1 year ago

Try the latest version. https://github.com/hibobmaster/matrix_chatgpt_bot/blob/main/CHANGELOG.md