mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-14 05:33:47 +00:00
Fix document analysis provider selection freezes
This commit is contained in:
1 parent
6e735523c6
commit
894c509f4d
7 files changed
+80
-34
No files matched your search
@@ -1,7 +1,10 @@
|
||||
@using AIStudio.Settings
|
||||
@inherits MSGComponentBase
|
||||
@{
|
||||
var availableProviderItems = this.GetAvailableProviderSelectionItems().ToList();
|
||||
}
|
||||
<MudSelect T="Provider" Value="@this.ProviderSettings" ValueChanged="@this.SelectionChanged" Validation="@this.ValidateProvider" Margin="Margin.Dense" Label="@T("Provider")" Class="mb-3 rounded-lg" OuterClass="flex-grow-0" Variant="Variant.Outlined" Disabled="@this.Disabled">
|
||||
@foreach (var providerItem in this.GetAvailableProviderSelectionItems())
|
||||
@foreach (var providerItem in availableProviderItems)
|
||||
{
|
||||
<MudSelectItem Value="@providerItem.Provider">
|
||||
<MudStack Row="true" AlignItems="AlignItems.Center" Justify="Justify.SpaceBetween" Class="w-100" Wrap="Wrap.NoWrap">
|
||||
@@ -20,4 +23,10 @@
|
||||
</MudStack>
|
||||
</MudSelectItem>
|
||||
}
|
||||
</MudSelect>
|
||||
</MudSelect>
|
||||
@if (availableProviderItems.Count is 0)
|
||||
{
|
||||
<MudText Typo="Typo.body2" Color="Color.Error" Class="mb-3">
|
||||
@T("No LLM providers meet the confidence requirements. Configure an eligible provider in the app settings.")
|
||||
</MudText>
|
||||
}
|
||||
Reference in new issue
Block a user