mirror of
https://github.com/matrixgpt/matrix-chatgpt-bot.git
synced 2024-09-30 04:55:44 +00:00
reduce anmount of detail for users
This commit is contained in:
parent
2ea46ccf12
commit
acd5e2409a
@ -124,9 +124,8 @@ export default class CommandHandler {
|
|||||||
|
|
||||||
const result = await sendChatGPTMessage(this.chatGPT, await bodyWithoutPrefix, storedConversation)
|
const result = await sendChatGPTMessage(this.chatGPT, await bodyWithoutPrefix, storedConversation)
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
LogService.warn(`OpenAI-API Error: ${error}`);
|
LogService.error(`OpenAI-API Error: ${error}`);
|
||||||
sendError(this.client, `Sorry, there was an error using the OpenAI-API. Details:\n${error}`, roomId, event.event_id);
|
sendError(this.client, "The bot has encountered an error, please contact your administrator.", roomId, event.event_id);
|
||||||
return;
|
|
||||||
});
|
});
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.client.setTyping(roomId, false, 500),
|
this.client.setTyping(roomId, false, 500),
|
||||||
|
Loading…
Reference in New Issue
Block a user