mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-09 12:49:39 +00:00
Check revised plugins too, and only with a trusted enough provider
This commit is contained in:
2 files changed
+30
-6
No files matched your search
@@ -198,7 +198,12 @@ public partial class AssistantPluginRevisionDialog : MSGComponentBase
|
||||
await this.InvokeAsync(this.StateHasChanged);
|
||||
try
|
||||
{
|
||||
var audit = await this.AssistantPluginAuditService.RunAuditAsync(updatedPlugin);
|
||||
//
|
||||
// The provider the user picked for the revision serves as the fallback: it is used only
|
||||
// when nothing is configured for the audit agent, and only when it is trusted enough for
|
||||
// an audit. Without it, a revised plugin could not be checked at all here.
|
||||
//
|
||||
var audit = await this.AssistantPluginAuditService.RunAuditAsync(updatedPlugin, fallbackProvider: this.providerSettings);
|
||||
if (audit.Level is AssistantAuditLevel.UNKNOWN)
|
||||
return audit;
|
||||
|
||||
|
||||
Reference in new issue
Block a user