diff --git a/app/MindWork AI Studio/Assistants/AssistantBase.razor b/app/MindWork AI Studio/Assistants/AssistantBase.razor index 5fee5f0a..0f816515 100644 --- a/app/MindWork AI Studio/Assistants/AssistantBase.razor +++ b/app/MindWork AI Studio/Assistants/AssistantBase.razor @@ -147,6 +147,9 @@ { } + + + diff --git a/app/MindWork AI Studio/Assistants/I18N/allTexts.lua b/app/MindWork AI Studio/Assistants/I18N/allTexts.lua index d3a4c32b..d67a06e4 100644 --- a/app/MindWork AI Studio/Assistants/I18N/allTexts.lua +++ b/app/MindWork AI Studio/Assistants/I18N/allTexts.lua @@ -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" diff --git a/app/MindWork AI Studio/Components/ChatComponent.razor b/app/MindWork AI Studio/Components/ChatComponent.razor index 3c49a4b5..941c1dd8 100644 --- a/app/MindWork AI Studio/Components/ChatComponent.razor +++ b/app/MindWork AI Studio/Components/ChatComponent.razor @@ -124,7 +124,9 @@ } + + - \ No newline at end of file + diff --git a/app/MindWork AI Studio/Components/HalluzinationReminder.razor b/app/MindWork AI Studio/Components/HalluzinationReminder.razor new file mode 100644 index 00000000..d6c1046b --- /dev/null +++ b/app/MindWork AI Studio/Components/HalluzinationReminder.razor @@ -0,0 +1,5 @@ + + + @this.Text + + diff --git a/app/MindWork AI Studio/Components/HalluzinationReminder.razor.cs b/app/MindWork AI Studio/Components/HalluzinationReminder.razor.cs new file mode 100644 index 00000000..3175ed8b --- /dev/null +++ b/app/MindWork AI Studio/Components/HalluzinationReminder.razor.cs @@ -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"; +} \ No newline at end of file