mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-03 03:54:24 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
35 lines
1.4 KiB
Plaintext
35 lines
1.4 KiB
Plaintext
@using AIStudio.Tools.DocumentSegments
|
|
@inherits MSGComponentBase
|
|
|
|
<MudPaper Class="pa-3 mb-3 border-dashed border rounded-lg">
|
|
<MudText Typo="Typo.h6" Class="mb-2">
|
|
@this.Title
|
|
</MudText>
|
|
<MudJustifiedText Typo="Typo.body1">
|
|
@this.DoneText
|
|
</MudJustifiedText>
|
|
<MudJustifiedText Typo="Typo.body2">
|
|
@this.SectionsText
|
|
</MudJustifiedText>
|
|
@if (this.Document.Results.CountOf(SegmentStatus.FILTERED) is > 0 and var filteredCount)
|
|
{
|
|
<MudJustifiedText Typo="Typo.body2">
|
|
@string.Format(T("Sections left unchanged because the prompt injection check found suspicious content in them: {0}"), filteredCount)
|
|
</MudJustifiedText>
|
|
}
|
|
@if (this.Document.Results.CountOf(SegmentStatus.FAILED) is > 0 and var failedCount)
|
|
{
|
|
<MudJustifiedText Typo="Typo.body2">
|
|
@string.Format(T("Sections left unchanged because the AI model gave no usable answer for them: {0}"), failedCount)
|
|
</MudJustifiedText>
|
|
}
|
|
@if (DocumentSegmentFormats.For(this.Document.SourcePath) is { } format)
|
|
{
|
|
<MudJustifiedText Typo="Typo.body2" Class="mt-2">
|
|
@format.LimitsNotice
|
|
</MudJustifiedText>
|
|
}
|
|
<MudButton Variant="Variant.Filled" Color="Color.Primary" StartIcon="@AppIcons.SAVE" Disabled="@this.IsSaving" OnClick="@this.Save" Class="mt-3">
|
|
@this.SaveText
|
|
</MudButton>
|
|
</MudPaper> |