mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-14 05:13:48 +00:00
Added the option to stop the current generation (#249)
This commit is contained in:
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>
|
||||
|
||||
Reference in new issue
Block a user