Stop completion when exception has occurred.
This commit is contained in:
parent
8748db4fde
commit
f1278b3384
|
|
@ -43,6 +43,7 @@ public partial class ConversationService
|
|||
catch (Exception ex)
|
||||
{
|
||||
msg.Content = ex.Message;
|
||||
msg.StopCompletion = true;
|
||||
_logger.LogError(msg.Content);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@ public partial class InstructService
|
|||
catch (Exception ex)
|
||||
{
|
||||
msg.Content = ex.Message;
|
||||
msg.StopCompletion = true;
|
||||
_logger.LogError(msg.Content);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue