mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-23 08:33:49 +00:00
Moved the background agents to AI operations (#1215)
This commit is contained in:
1 parent
8a4a26503b
commit
c50a93cd17
139 files changed
+4069
-2340
No files matched your search
@@ -49,13 +49,23 @@ public partial class ConfigurationProviderSelection : MSGComponentBase
|
||||
[Parameter]
|
||||
public string? NoPreselectionText { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The text of the empty entry, which says what happens without a preselected provider, or null for "Use app default".
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Set it where the empty entry falls back on something else than the provider of the whole app, e.g., on the
|
||||
/// model of the chat.
|
||||
/// </remarks>
|
||||
[Parameter]
|
||||
public string? EmptySelectionText { get; set; }
|
||||
|
||||
private IEnumerable<ConfigurationSelectData<string>> FilteredData()
|
||||
{
|
||||
if (this.NoPreselectionText is not null)
|
||||
yield return new(this.NoPreselectionText, AIStudio.Settings.Provider.NONE.Id);
|
||||
|
||||
if(this.Component is not Tools.Components.NONE and not Tools.Components.APP_SETTINGS)
|
||||
yield return new(T("Use app default"), string.Empty);
|
||||
yield return new(this.EmptySelectionText ?? T("Use app default"), string.Empty);
|
||||
|
||||
//
|
||||
// Filter the providers based on the minimum confidence level of this component, the enforced
|
||||
|
||||
Reference in new issue
Block a user