Skip to content

Commit

Permalink
Update Chat.razor
Browse files Browse the repository at this point in the history
  • Loading branch information
BeepBeepBopBop committed Dec 28, 2024
1 parent bcec8f2 commit 30918de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions LM-Kit-Maestro/UI/Razor/Components/Chat.razor
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
Tokens: @ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.ContextUsedSpace /
@ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.ContextSize
(@CalculateUsagePercentage(ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.ContextUsedSpace,
ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.ContextSize)%)
ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.ContextSize)%)
</text>
}
</div>
Expand Down Expand Up @@ -128,7 +128,6 @@
}

ViewModel.ConversationListViewModel.PropertyChanged += OnConversationListViewModelPropertyChanged;

ViewModel.ConversationListViewModel.CurrentConversation.LMKitConversation.PropertyChanged += OnLMKitConversationPropertyChanged;

await ResizeHandler.RegisterPageResizeAsync(Resized);
Expand Down Expand Up @@ -260,6 +259,8 @@
{
Snackbar.Add($"Text generation failed unexpectedly:\n{e.Exception.Message}", Severity.Error);
}

UpdateUIAsync();
}

private async void OnLatestAssistantResponseProgressed()
Expand Down

0 comments on commit 30918de

Please sign in to comment.