mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-06 04:51:36 +00:00
Added whole documents to the Translation, Grammar & Spelling, and Rewrite & Improve assistants (#1179)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
f7666861f1
commit
918572c158
150 files changed
+12850
-302
No files matched your search
@@ -0,0 +1,11 @@
|
||||
@typeparam TSettings where TSettings : IComponent
|
||||
@inherits AssistantBaseCore<TSettings>
|
||||
|
||||
@* The form comes from the assistant, see AssistantBaseCore; the base adds only what goes next to and below it: *@
|
||||
@code {
|
||||
|
||||
private protected override RenderFragment? HeaderActions => this.OtherMode is { } otherMode ? @<AssistantModeSwitch Tooltip="@this.SwitchTooltip(otherMode)" Disabled="@(this.IsProcessing || this.SubmitDisabled)" OnSwitch="@(() => this.ChooseMode(otherMode))"/> : null;
|
||||
|
||||
private protected override RenderFragment? BelowSubmitContent => this.ShownEditedDocument is { } document ? @<EditedDocumentSummary Document="@document" Title="@this.DocumentResultTitle" DoneText="@this.DocumentDoneText(document)" SectionsText="@this.DocumentSectionsText(document.Results)" SaveText="@this.DocumentSaveText" IsSaving="@this.isSavingDocument" OnSave="@this.SaveEditedDocumentAsync"/> : null;
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user