mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-16 04:02:10 +00:00
Use sorted accessors for embedding and transcription providers
This commit is contained in:
parent
f5a32a2aa6
commit
c7d69b72a7
@ -91,7 +91,7 @@ public partial class SettingsPanelApp : SettingsPanelBase
|
||||
yield return new(T("Disable dictation and transcription"), string.Empty);
|
||||
|
||||
var minimumLevel = this.SettingsManager.GetMinimumConfidenceLevel(Tools.Components.APP_SETTINGS);
|
||||
foreach (var provider in this.SettingsManager.ConfigurationData.TranscriptionProviders)
|
||||
foreach (var provider in this.SettingsManager.GetAllTranscriptionProviders())
|
||||
{
|
||||
if (provider.UsedLLMProvider.GetConfidence(this.SettingsManager).Level >= minimumLevel)
|
||||
yield return new(provider.Name, provider.Id);
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
<MudJustifiedText Typo="Typo.body1" Class="mb-3">
|
||||
@T("This helps AI Studio understand and compare things in a way that's similar to how humans do. When you're working on something, AI Studio can automatically identify related documents and data by comparing their digital fingerprints. For instance, if you're writing about customer service, AI Studio can instantly find other documents in your data that discuss similar topics or experiences, even if they use different words.")
|
||||
</MudJustifiedText>
|
||||
<MudTable Items="@this.SettingsManager.ConfigurationData.EmbeddingProviders" Hover="@true" Class="border-dashed border rounded-lg">
|
||||
<MudTable Items="@this.SettingsManager.GetAllEmbeddingProviders()" Hover="@true" Class="border-dashed border rounded-lg">
|
||||
<ColGroup>
|
||||
<col style="width: 3em;"/>
|
||||
<col style="width: 12em;"/>
|
||||
|
||||
@ -131,7 +131,7 @@ public partial class SettingsPanelEmbeddings : SettingsPanelProviderBase
|
||||
private async Task UpdateEmbeddingProviders()
|
||||
{
|
||||
this.AvailableEmbeddingProviders.Clear();
|
||||
foreach (var provider in this.SettingsManager.ConfigurationData.EmbeddingProviders)
|
||||
foreach (var provider in this.SettingsManager.GetAllEmbeddingProviders())
|
||||
this.AvailableEmbeddingProviders.Add(new (provider.Name, provider.Id));
|
||||
|
||||
await this.AvailableEmbeddingProvidersChanged.InvokeAsync(this.AvailableEmbeddingProviders);
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
@T("With the support of transcription models, MindWork AI Studio can convert human speech into text. This is useful, for example, when you need to dictate text. You can choose from dedicated transcription models, but not multimodal LLMs (large language models) that can handle both speech and text. The configuration of multimodal models is done in the 'Configure providers' section.")
|
||||
</MudJustifiedText>
|
||||
|
||||
<MudTable Items="@this.SettingsManager.ConfigurationData.TranscriptionProviders" Hover="@true" Class="border-dashed border rounded-lg">
|
||||
<MudTable Items="@this.SettingsManager.GetAllTranscriptionProviders()" Hover="@true" Class="border-dashed border rounded-lg">
|
||||
<ColGroup>
|
||||
<col style="width: 3em;"/>
|
||||
<col style="width: 12em;"/>
|
||||
|
||||
@ -129,7 +129,7 @@ public partial class SettingsPanelTranscription : SettingsPanelProviderBase
|
||||
private async Task UpdateTranscriptionProviders()
|
||||
{
|
||||
this.AvailableTranscriptionProviders.Clear();
|
||||
foreach (var provider in this.SettingsManager.ConfigurationData.TranscriptionProviders)
|
||||
foreach (var provider in this.SettingsManager.GetAllTranscriptionProviders())
|
||||
this.AvailableTranscriptionProviders.Add(new (provider.Name, provider.Id));
|
||||
|
||||
await this.AvailableTranscriptionProvidersChanged.InvokeAsync(this.AvailableTranscriptionProviders);
|
||||
|
||||
@ -48,7 +48,7 @@ public abstract class SettingsDialogBase : MSGComponentBase
|
||||
private void UpdateEmbeddingProviders()
|
||||
{
|
||||
this.AvailableEmbeddingProviders.Clear();
|
||||
foreach (var provider in this.SettingsManager.ConfigurationData.EmbeddingProviders)
|
||||
foreach (var provider in this.SettingsManager.GetAllEmbeddingProviders())
|
||||
this.AvailableEmbeddingProviders.Add(new (provider.Name, provider.Id));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user