Merge branch 'master' of https://github.com/SciSharp/BotSharp into features/refine-function-indication

This commit is contained in:
Jicheng Lu 2025-08-01 09:49:38 -05:00
commit 10759a7939
2 changed files with 6 additions and 1 deletions

View file

@ -122,6 +122,11 @@ public static class StringExtensions
return s;
}
if (value is DateTime d)
{
return d.ToString("o");
}
if (value is JsonElement elem
&& elem.ValueKind == JsonValueKind.String)
{

View file

@ -67,7 +67,7 @@ public partial class RoutingService
}
catch (JsonException ex)
{
_logger.LogError($"The input does not contain any JSON tokens:\r\n{message.Content}");
_logger.LogError($"The input does not contain any JSON tokens:\r\n{message.Content}\r\n{ex.Message}");
message.StopCompletion = true;
message.Content = ex.Message;
}