🛠️ refactor: Improve Logging and Error Handling in ToolService and useSSE (#2922)

* refactor(ToolService): streamline logging and tool error handling, also ensure generated outputs always have `output` field

* refactor(useSSE): error message for server connection issue

* refactor: add back capture group of sensitive information.js

* hotfix: cohere chinese character unicode issue, return aggregated reply
This commit is contained in:
Danny Avila 2024-05-30 12:58:43 -04:00 committed by GitHub
parent a6058c5669
commit 08d6bea359
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 34 additions and 30 deletions

View file

@ -367,7 +367,7 @@ export default function useSSE(submission: TSubmission | null, index = 0) {
if (!data) {
const convoId = conversationId ?? v4();
const errorResponse = parseErrorResponse({
text: 'Error connecting to server',
text: 'Error connecting to server, try refreshing the page.',
...submission,
conversationId: convoId,
});