From c0b7016c3a4757efd44b897791ecddb6ea5f57f7 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sun, 9 Feb 2025 16:59:26 +0100 Subject: [PATCH] Added the assistant option to select the default app provider (#278) --- .../Components/ConfigurationProviderSelection.razor.cs | 3 +++ .../Components/Settings/SettingsPanelApp.razor | 2 +- .../Components/Settings/SettingsPanelChat.razor | 2 +- app/MindWork AI Studio/Tools/Components.cs | 1 + app/MindWork AI Studio/wwwroot/changelog/v0.9.28.md | 1 + 5 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/MindWork AI Studio/Components/ConfigurationProviderSelection.razor.cs b/app/MindWork AI Studio/Components/ConfigurationProviderSelection.razor.cs index debeae0..e9a9f9b 100644 --- a/app/MindWork AI Studio/Components/ConfigurationProviderSelection.razor.cs +++ b/app/MindWork AI Studio/Components/ConfigurationProviderSelection.razor.cs @@ -49,6 +49,9 @@ public partial class ConfigurationProviderSelection : ComponentBase, IMessageBus private IEnumerable> FilteredData() { + if(this.Component is not Tools.Components.NONE and not Tools.Components.APP_SETTINGS) + yield return new("Use app default", string.Empty); + var minimumLevel = this.SettingsManager.GetMinimumConfidenceLevel(this.Component); foreach (var providerId in this.Data) { diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor index 5cdb326..e67aaf5 100644 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelApp.razor @@ -19,6 +19,6 @@ } } - + \ No newline at end of file diff --git a/app/MindWork AI Studio/Components/Settings/SettingsPanelChat.razor b/app/MindWork AI Studio/Components/Settings/SettingsPanelChat.razor index 602af63..4f677ae 100644 --- a/app/MindWork AI Studio/Components/Settings/SettingsPanelChat.razor +++ b/app/MindWork AI Studio/Components/Settings/SettingsPanelChat.razor @@ -9,7 +9,7 @@ - + \ No newline at end of file diff --git a/app/MindWork AI Studio/Tools/Components.cs b/app/MindWork AI Studio/Tools/Components.cs index c910b7c..4faa55a 100644 --- a/app/MindWork AI Studio/Tools/Components.cs +++ b/app/MindWork AI Studio/Tools/Components.cs @@ -20,4 +20,5 @@ public enum Components ERI_ASSISTANT, CHAT, + APP_SETTINGS, } \ No newline at end of file diff --git a/app/MindWork AI Studio/wwwroot/changelog/v0.9.28.md b/app/MindWork AI Studio/wwwroot/changelog/v0.9.28.md index bac59bf..83ad9cd 100644 --- a/app/MindWork AI Studio/wwwroot/changelog/v0.9.28.md +++ b/app/MindWork AI Studio/wwwroot/changelog/v0.9.28.md @@ -1,6 +1,7 @@ # v0.9.28, build 203 (2025-0x-xx xx:xx UTC) - Added an information view to all data sources to the data source configuration page. The data source configuration is a preview feature behind the RAG feature flag. - Added a ERI ((E)xternal (R)etrieval (I)nterface) client for communication with any ERI server. +- Added the option to select the default app provider in the assistant settings under provider selection. Thank you, Peer (`peerschuett`), for reporting the issue. - Added `donework` as financial supporter. Thank you, Dominic! - Added content contributors to the supporter page. We thank Luc (`DevNullx64`) for his build script contribution as well as Kerstin (`KeSah001`) for creating the Wiki pages. - Improved the resource handling when loading models.