From 334d4810ebd443e5b792a8a3eda75b34ae387bdc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Peer=20Sch=C3=BCtt?=
<20603780+peerschuett@users.noreply.github.com>
Date: Fri, 13 Mar 2026 12:02:45 +0100
Subject: [PATCH] Working version
---
.../Assistants/AssistantBase.razor | 3 +++
.../Assistants/I18N/allTexts.lua | 3 +++
.../Components/ChatComponent.razor | 4 +++-
.../Components/HalluzinationReminder.razor | 5 +++++
.../Components/HalluzinationReminder.razor.cs | 16 ++++++++++++++++
5 files changed, 30 insertions(+), 1 deletion(-)
create mode 100644 app/MindWork AI Studio/Components/HalluzinationReminder.razor
create mode 100644 app/MindWork AI Studio/Components/HalluzinationReminder.razor.cs
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