mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 11:40:21 +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;
 | 
					        return time;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    protected async Task<string> AddAIResponseAsync(DateTimeOffset time)
 | 
					    protected async Task<string> AddAIResponseAsync(DateTimeOffset time, bool hideContentFromUser = false)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        var aiText = new ContentText
 | 
					        var aiText = new ContentText
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
@ -278,6 +278,7 @@ public abstract partial class AssistantBase : ComponentBase, IMessageBusReceiver
 | 
				
			|||||||
            ContentType = ContentType.TEXT,
 | 
					            ContentType = ContentType.TEXT,
 | 
				
			||||||
            Role = ChatRole.AI,
 | 
					            Role = ChatRole.AI,
 | 
				
			||||||
            Content = aiText,
 | 
					            Content = aiText,
 | 
				
			||||||
 | 
					            HideFromUser = hideContentFromUser,
 | 
				
			||||||
        };
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (this.chatThread is not null)
 | 
					        if (this.chatThread is not null)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user