Skip to content

Commit 575ff10

Browse files
committed
Frame chat response error on web app in a more conversational form
Also indicate hitting dislike on the message should be enough to convey the issue to the developers.
1 parent 893ae60 commit 575ff10

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/interface/web/app/chat/page.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,10 @@ export default function Chat() {
264264

265265
// Render error message as current message
266266
const errorMessage = (err as Error).message;
267-
currentMessage.rawResponse = `Encountered Error: ${errorMessage}. Please try again later.`;
267+
if (errorMessage.includes("Error in input stream"))
268+
currentMessage.rawResponse = `Woops! The connection broke while I was writing my thoughts down. Maybe try again in a bit or dislike this message if the issue persists?`;
269+
else
270+
currentMessage.rawResponse = `Umm, not sure what just happened. I see this error message: ${errorMessage}. Could you try again or dislike this message if the issue persists?`;
268271

269272
// Complete message streaming teardown properly
270273
currentMessage.completed = true;

0 commit comments

Comments
 (0)