Working version

This commit is contained in:
Peer Schütt 2026-03-13 12:02:45 +01:00
parent 65ec82cdcb
commit 334d4810eb
5 changed files with 30 additions and 1 deletions

View File

@ -147,6 +147,9 @@
{ {
<ProfileSelection MarginLeft="" @bind-CurrentProfile="@this.currentProfile"/> <ProfileSelection MarginLeft="" @bind-CurrentProfile="@this.currentProfile"/>
} }
<MudSpacer />
<HalluzinationReminder ContainerClass="my-0 ml-2"/>
</MudStack> </MudStack>
</FooterContent> </FooterContent>
</InnerScrolling> </InnerScrolling>

View File

@ -1768,6 +1768,9 @@ UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::DATASOURCESELECTION::T700666808"] = "Mana
-- Available Data Sources -- Available Data Sources
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::DATASOURCESELECTION::T86053874"] = "Available Data Sources" UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::DATASOURCESELECTION::T86053874"] = "Available Data Sources"
-- LLMs can make mistakes. Check important information.
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::HALLUZINATIONREMINDER::T3528806904"] = "LLMs can make mistakes. Check important information."
-- Issues -- Issues
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ISSUES::T3229841001"] = "Issues" UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ISSUES::T3229841001"] = "Issues"

View File

@ -124,7 +124,9 @@
<MudIconButton Icon="@Icons.Material.Filled.Error" Color="Color.Error"/> <MudIconButton Icon="@Icons.Material.Filled.Error" Color="Color.Error"/>
</MudTooltip> </MudTooltip>
} }
<MudSpacer />
<HalluzinationReminder ContainerClass="my-0 ml-2"/>
<MudIconButton /> <MudIconButton />
</MudToolBar> </MudToolBar>
</FooterContent> </FooterContent>
</InnerScrolling> </InnerScrolling>

View File

@ -0,0 +1,5 @@
<MudElement Class="@($"{this.ContainerClass} d-flex align-center")">
<MudText Typo="Typo.caption" Class="mb-0">
@this.Text
</MudText>
</MudElement>

View File

@ -0,0 +1,16 @@
using AIStudio.Tools.PluginSystem;
using Microsoft.AspNetCore.Components;
namespace AIStudio.Components;
public partial class HalluzinationReminder: ComponentBase
{
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(HalluzinationReminder).Namespace, nameof(HalluzinationReminder));
[Parameter]
public string Text { get; set; } = TB("LLMs can make mistakes. Check important information.");
[Parameter]
public string ContainerClass { get; set; } = "mt-2 mb-1";
}