mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-17 12:17:59 +00:00
Offer a model in the security audit dialog when none is configured
This commit is contained in:
2 files changed
+51
-5
No files matched your search
@@ -36,6 +36,18 @@
|
||||
</MudText>
|
||||
</MudPaper>
|
||||
|
||||
@if (this.NeedsProviderSelection && !this.securityState.IsEnterpriseApproved)
|
||||
{
|
||||
<MudPaper Class="pa-3 border-dashed border rounded-lg">
|
||||
<MudText Typo="Typo.body2" Class="mb-3">
|
||||
@T("No model is set for security checks, neither for this agent nor for the app as a whole. Choose one here to check this plugin. Your choice applies to this check only; you can set a permanent one in the app settings.")
|
||||
</MudText>
|
||||
<CascadingValue Value="Components.AGENT_ASSISTANT_PLUGIN_AUDIT">
|
||||
<ProviderSelection @bind-ProviderSettings="@this.auditProviderSelection" ValidateProvider="@this.ValidatingProvider" Disabled="@this.isAuditing" />
|
||||
</CascadingValue>
|
||||
</MudPaper>
|
||||
}
|
||||
|
||||
<MudExpansionPanels MultiExpansion="true">
|
||||
<MudExpansionPanel Expanded="true">
|
||||
<TitleContent>
|
||||
|
||||
Reference in new issue
Block a user