Skip to content

Commit

Permalink
Update ConversationViewModel.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
BeepBeepBopBop committed Dec 2, 2024
1 parent b2045d3 commit 594d5e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion LM-Kit-Maestro/ViewModels/ConversationViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ private void OnNewlySubmittedPrompt(string prompt)
private void OnTextGenerationResult(LMKitService.LMKitResult? result, Exception? exception = null)
{
AwaitingResponse = false;
Messages.Last().Status = result != null ? result.Status : LMKitTextGenerationStatus.GenericError;
Messages.Last().Status = result != null ? result.Status : exception is OperationCanceledException ?
LMKitTextGenerationStatus.Cancelled : LMKitTextGenerationStatus.GenericError;

if (exception != null || result?.Exception != null)
{
Expand Down

0 comments on commit 594d5e1

Please sign in to comment.