Skip to content

Commit

Permalink
Update ChatGptService.cs
Browse files Browse the repository at this point in the history
hide error message on failure to talk to AI
  • Loading branch information
Madpeterz committed Oct 1, 2024
1 parent f72e097 commit 65210c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SecondBotEvents/Services/ChatGptService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -309,9 +309,9 @@ protected async void GetAiReply(int ratelimiter, UUID replyTo, UUID user, string
else if (role == "assistant") messages.Add(ChatMessage.FromAssistant(thismessage));
}
}
catch (Exception ex)
catch
{
LogFormater.Warn("error building AI request:" + ex.Message);
//LogFormater.Warn("error building AI request:" + ex.Message);
return;
}
}
Expand Down

0 comments on commit 65210c6

Please sign in to comment.