From f10d9a5d88f1fca42f64fee34b885deaf5e13d7b Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 11 May 2025 15:35:19 +0200 Subject: [PATCH] Improved the embedding configuration dialog (#454) --- app/MindWork AI Studio/Dialogs/EmbeddingProviderDialog.razor | 5 +++-- app/MindWork AI Studio/wwwroot/changelog/v0.9.43.md | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/MindWork AI Studio/Dialogs/EmbeddingProviderDialog.razor b/app/MindWork AI Studio/Dialogs/EmbeddingProviderDialog.razor index 2aea5f63..c3a5b3bf 100644 --- a/app/MindWork AI Studio/Dialogs/EmbeddingProviderDialog.razor +++ b/app/MindWork AI Studio/Dialogs/EmbeddingProviderDialog.razor @@ -6,10 +6,10 @@ @* ReSharper disable once CSharpWarnings::CS8974 *@ - + @foreach (LLMProviders provider in Enum.GetValues(typeof(LLMProviders))) { - if (provider.ProvideEmbeddings()) + if (provider.ProvideEmbeddings() || provider is LLMProviders.NONE) { @provider.ToName() @@ -32,6 +32,7 @@ AdornmentIcon="@Icons.Material.Filled.VpnKey" AdornmentColor="Color.Info" InputType="InputType.Password" + Immediate="true" Validation="@this.providerValidation.ValidatingAPIKey"/> } diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.43.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.43.md index dc56c92a..65f7f1d1 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.43.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.43.md @@ -1,4 +1,5 @@ # v0.9.43, build 218 (2025-05-xx xx:xx UTC) - 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 Google Gemini LLM model selection by filtering out the new embedding models. \ No newline at end of file +- 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. \ No newline at end of file