Request: Display API errors as chatbot messages and remove error box
-
Hello AI Engine Support Team,
I am using your plugin for a chatbot on my website and have an important request:
- Remove the red error box:
I want to prevent the red error box from appearing at the bottom of the page when an error occurs from OpenAI or the server. - Display the error as a chatbot message:
Instead of showing a separate error box, the error should appear as a normal chatbot message within the chat interface, so the user perceives it as part of the bot’s response. - Do not delete the user’s message on error:
When an error occurs, the user’s message that triggered the error should not be deleted or removed; it must remain visible in the chat history.
I have tried implementing this using the
mwai_ai_exceptionandmwai_ai_replyfilters, as well as overriding thehandleErrorJavaScript function, but I was not successful.Please advise how I can best implement these changes in the plugin or if there is a standard solution for this issue.
Thank you for your cooperation and support.
- Remove the red error box:
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Request: Display API errors as chatbot messages and remove error box’ is closed to new replies.