From d9a9accd79e6556c51672aedc24febfcd044d21e Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Tue, 31 Dec 2024 19:31:33 +0100 Subject: [PATCH] Added the ability to hide some AI responses --- app/MindWork AI Studio/Assistants/AssistantBase.razor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs b/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs index e4f155e7..99f29dff 100644 --- a/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs +++ b/app/MindWork AI Studio/Assistants/AssistantBase.razor.cs @@ -263,7 +263,7 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver return time; } - protected async Task AddAIResponseAsync(DateTimeOffset time) + protected async Task AddAIResponseAsync(DateTimeOffset time, bool hideContentFromUser = false) { var aiText = new ContentText { @@ -278,6 +278,7 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver ContentType = ContentType.TEXT, Role = ChatRole.AI, Content = aiText, + HideFromUser = hideContentFromUser, }; if (this.chatThread is not null)