From 28a1e23d7905fe76d8b2b17cb399ff187f37d256 Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:24:02 +0100 Subject: [PATCH] Update ChatGptService.cs --- SecondBotEvents/Services/ChatGptService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SecondBotEvents/Services/ChatGptService.cs b/SecondBotEvents/Services/ChatGptService.cs index 824c964..5510b0c 100644 --- a/SecondBotEvents/Services/ChatGptService.cs +++ b/SecondBotEvents/Services/ChatGptService.cs @@ -322,7 +322,7 @@ namespace SecondBotEvents.Services } try { - LogFormater.Debug(JsonConvert.ToString(messages)); + LogFormater.Debug(JsonConvert.SerializeObject(messages)); string replyMessage = ""; var openAiService = new OpenAIService(new OpenAiOptions() { @@ -363,7 +363,7 @@ namespace SecondBotEvents.Services }); } - LogFormater.Debug(JsonConvert.ToString(completionResult)); + LogFormater.Debug(JsonConvert.SerializeObject(completionResult)); if (completionResult == null) { return;