mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-04 20:09:40 +00:00
Improved data security for chat threads (#317)
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user