Stop completion when exception has occurred.

This commit is contained in:
Haiping Chen 2024-01-17 12:28:15 -06:00
parent 8748db4fde
commit f1278b3384
2 changed files with 2 additions and 0 deletions

View file

@ -43,6 +43,7 @@ public partial class ConversationService
catch (Exception ex)
{
msg.Content = ex.Message;
msg.StopCompletion = true;
_logger.LogError(msg.Content);
}

View file

@ -37,6 +37,7 @@ public partial class InstructService
catch (Exception ex)
{
msg.Content = ex.Message;
msg.StopCompletion = true;
_logger.LogError(msg.Content);
}