Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
reduce anmount of detail for users
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Kammler authored and bertybuttface committed Feb 8, 2023
1 parent 2ea46cc commit acd5e24
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit acd5e24

Please sign in to comment.