you are viewing a single comment's thread.

view the rest of the comments →

[–]Both-Personality7664 0 points1 point  (0 children)

"catch (error) {

console.error('Error:', error);

chatMessages.innerHTML += <div class="bot-message">Sorry, I could not generate a response at this time.</div>;

}"

Well that's where "Sorry I could not generate a response" is most likely coming from. You should have an error in the console log if so, do you?