mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-05 09:29:40 +00:00
Changed private web pages and the Confluence search to require a High-confidence provider
This commit is contained in:
11 files changed
+34
-51
No files matched your search
@@ -37,20 +37,13 @@ public static class ChatThreadExtensions
|
||||
};
|
||||
|
||||
//
|
||||
// A provider trusted by the organization's configuration may continue the thread whatever
|
||||
// confidence it requires, the same as the tools which put that data into the thread treat
|
||||
// it as equal to a High-confidence provider. Otherwise such a provider could run a tool
|
||||
// and then be locked out of its own chat by the result.
|
||||
// The confidence axis is checked on its own: a provider trusted by configuration counts as
|
||||
// self-hosted for data-source security, which is the check further down, but that trust
|
||||
// says nothing about how confidential the provider is. An organization which wants its
|
||||
// contractually covered cloud provider to pass here raises its level through the custom
|
||||
// confidence scheme instead.
|
||||
//
|
||||
var isTrustedByConfiguration = provider switch
|
||||
{
|
||||
IProvider p => p.IsTrustedByConfiguration(settingsManager),
|
||||
AIStudio.Settings.Provider p => p.IsTrustedByConfiguration(settingsManager),
|
||||
|
||||
_ => false,
|
||||
};
|
||||
|
||||
if (providerConfidence < chatThread.RequiredProviderConfidence && !isTrustedByConfiguration)
|
||||
if (providerConfidence < chatThread.RequiredProviderConfidence)
|
||||
return false;
|
||||
|
||||
// The chat thread is available, but the data security is not specified.
|
||||
|
||||
Reference in new issue
Block a user