mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-03-29 17:31:37 +00:00
Working version
This commit is contained in:
parent
65ec82cdcb
commit
334d4810eb
@ -147,6 +147,9 @@
|
||||
{
|
||||
<ProfileSelection MarginLeft="" @bind-CurrentProfile="@this.currentProfile"/>
|
||||
}
|
||||
|
||||
<MudSpacer />
|
||||
<HalluzinationReminder ContainerClass="my-0 ml-2"/>
|
||||
</MudStack>
|
||||
</FooterContent>
|
||||
</InnerScrolling>
|
||||
|
||||
@ -1768,6 +1768,9 @@ UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::DATASOURCESELECTION::T700666808"] = "Mana
|
||||
-- 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
|
||||
UI_TEXT_CONTENT["AISTUDIO::COMPONENTS::ISSUES::T3229841001"] = "Issues"
|
||||
|
||||
|
||||
@ -124,7 +124,9 @@
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Error" Color="Color.Error"/>
|
||||
</MudTooltip>
|
||||
}
|
||||
<MudSpacer />
|
||||
<HalluzinationReminder ContainerClass="my-0 ml-2"/>
|
||||
<MudIconButton />
|
||||
</MudToolBar>
|
||||
</FooterContent>
|
||||
</InnerScrolling>
|
||||
</InnerScrolling>
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
<MudElement Class="@($"{this.ContainerClass} d-flex align-center")">
|
||||
<MudText Typo="Typo.caption" Class="mb-0">
|
||||
@this.Text
|
||||
</MudText>
|
||||
</MudElement>
|
||||
@ -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";
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user