dev: Using new stopwatch, some cleanup. No functional change

This commit is contained in:
Kwoth
2024-06-25 07:09:16 +00:00
parent 237e66495b
commit 4366f908f3
6 changed files with 18 additions and 23 deletions

View File

@@ -165,7 +165,7 @@ public class ChatterBotService : IExecOnMessage
}
else
{
Log.Warning("Error in chatterbot: {Error}", error);
Log.Warning("Error in chatterbot: {Error}", error.Value);
}
Log.Information("""

View File

@@ -103,6 +103,8 @@ public class OfficialGptSession : IChatterBotSession
try
{
var response = JsonConvert.DeserializeObject<OpenAiCompletionResponse>(dataString);
Log.Information("Received response: {response} ", dataString);
var res = response?.Choices?[0];
var message = res?.Message?.Content;