Added the option to stop the current generation (#249)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2025-01-03 23:13:56 +01:00
1 parent 8060fc01dd
commit 187663bbf2
3 files changed
+36 -7

No files matched your search

@@ -100,6 +100,13 @@
<ConfidenceInfo Mode="ConfidenceInfoMode.ICON" LLMProvider="@this.Provider.UsedLLMProvider"/>
}
@if (this.isStreaming && this.cancellationTokenSource is not null)
{
<MudTooltip Text="Stop generation" Placement="@TOOLBAR_TOOLTIP_PLACEMENT">
<MudIconButton Icon="@Icons.Material.Filled.Stop" Color="Color.Error" OnClick="() => this.CancelStreaming()"/>
</MudTooltip>
}
<ProfileSelection CurrentProfile="@this.currentProfile" CurrentProfileChanged="@this.ProfileWasChanged"/>
</MudToolBar>
</FooterContent>