Improved the embedding configuration dialog (#454)

This commit is contained in:
Thorsten Sommer 2025-05-11 15:35:19 +02:00 committed by GitHub
parent 1a4e4781cd
commit f10d9a5d88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -9,7 +9,7 @@
<MudSelect @bind-Value="@this.DataLLMProvider" Label="Provider" Class="mb-3" OpenIcon="@Icons.Material.Filled.AccountBalance" AdornmentColor="Color.Info" Adornment="Adornment.Start" Validation="@this.providerValidation.ValidatingProvider"> <MudSelect @bind-Value="@this.DataLLMProvider" Label="Provider" Class="mb-3" OpenIcon="@Icons.Material.Filled.AccountBalance" AdornmentColor="Color.Info" Adornment="Adornment.Start" Validation="@this.providerValidation.ValidatingProvider">
@foreach (LLMProviders provider in Enum.GetValues(typeof(LLMProviders))) @foreach (LLMProviders provider in Enum.GetValues(typeof(LLMProviders)))
{ {
if (provider.ProvideEmbeddings()) if (provider.ProvideEmbeddings() || provider is LLMProviders.NONE)
{ {
<MudSelectItem Value="@provider"> <MudSelectItem Value="@provider">
@provider.ToName() @provider.ToName()
@ -32,6 +32,7 @@
AdornmentIcon="@Icons.Material.Filled.VpnKey" AdornmentIcon="@Icons.Material.Filled.VpnKey"
AdornmentColor="Color.Info" AdornmentColor="Color.Info"
InputType="InputType.Password" InputType="InputType.Password"
Immediate="true"
Validation="@this.providerValidation.ValidatingAPIKey"/> Validation="@this.providerValidation.ValidatingAPIKey"/>
} }

View File

@ -2,3 +2,4 @@
- Added the ability to select the new Google Gemini embeddings in the embedding configuration. - Added the ability to select the new Google Gemini embeddings in the embedding configuration.
- Improved the automatic German translation; thanks Peer (`peerschuett`) for contributing. - Improved the automatic German translation; thanks Peer (`peerschuett`) for contributing.
- Improved Google Gemini LLM model selection by filtering out the new embedding models. - Improved Google Gemini LLM model selection by filtering out the new embedding models.
- Improved the dialog for configuring embeddings: the API key is applied immediately, and provider formatting was enhanced.