mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 21:19:47 +00:00
Added the ability to hide some AI responses
This commit is contained in:
parent
3828e2ad96
commit
d9a9accd79
@ -263,7 +263,7 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver
|
||||
return time;
|
||||
}
|
||||
|
||||
protected async Task<string> AddAIResponseAsync(DateTimeOffset time)
|
||||
protected async Task<string> 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)
|
||||
|
Loading…
Reference in New Issue
Block a user