From acd5e2409a2b099b34c299b50b1f1e519badc0ba Mon Sep 17 00:00:00 2001 From: Max Kammler Date: Wed, 8 Feb 2023 14:41:00 +0100 Subject: [PATCH] reduce anmount of detail for users --- src/handlers.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/handlers.ts b/src/handlers.ts index 9e7817e..ee16543 100644 --- a/src/handlers.ts +++ b/src/handlers.ts @@ -124,9 +124,8 @@ export default class CommandHandler { const result = await sendChatGPTMessage(this.chatGPT, await bodyWithoutPrefix, storedConversation) .catch((error) => { - LogService.warn(`OpenAI-API Error: ${error}`); - sendError(this.client, `Sorry, there was an error using the OpenAI-API. Details:\n${error}`, roomId, event.event_id); - return; + LogService.error(`OpenAI-API Error: ${error}`); + sendError(this.client, "The bot has encountered an error, please contact your administrator.", roomId, event.event_id); }); await Promise.all([ this.client.setTyping(roomId, false, 500),