Improved data security for chat threads (#317)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2025-03-08 20:13:08 +01:00
1 parent 371731ac13
commit 030990ee90
8 files changed
+154 -3

No files matched your search

@@ -41,6 +41,13 @@ public sealed class ContentText : IContent
if(chatThread is null)
return new();
if(!chatThread.IsLLMProviderAllowed(provider))
{
var logger = Program.SERVICE_PROVIDER.GetService<ILogger<ContentText>>()!;
logger.LogError("The provider is not allowed for this chat thread due to data security reasons. Skipping the AI process.");
return chatThread;
}
// Call the RAG process. Right now, we only have one RAG process:
if (lastPrompt is not null)
{