mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-11 02:13:48 +00:00
Added provider icons (#934)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
afdcc0455d
commit
e78a0e61b9
74 files changed
+1018
-74
No files matched your search
@@ -32,7 +32,7 @@ public partial class ConfigurationProviderSelection : MSGComponentBase
|
||||
|
||||
[Parameter]
|
||||
public Func<bool> IsLocked { get; set; } = () => false;
|
||||
|
||||
|
||||
private IEnumerable<ConfigurationSelectData<string>> FilteredData()
|
||||
{
|
||||
if(this.Component is not Tools.Components.NONE and not Tools.Components.APP_SETTINGS)
|
||||
@@ -51,6 +51,15 @@ public partial class ConfigurationProviderSelection : MSGComponentBase
|
||||
}
|
||||
}
|
||||
|
||||
private AIStudio.Settings.Provider? GetProvider(string providerId)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(providerId))
|
||||
return null;
|
||||
|
||||
var provider = this.SettingsManager.GetProviderById(providerId);
|
||||
return provider == AIStudio.Settings.Provider.NONE ? null : provider;
|
||||
}
|
||||
|
||||
#region Overrides of MSGComponentBase
|
||||
|
||||
protected override async Task ProcessIncomingMessage<T>(ComponentBase? sendingComponent, Event triggeredEvent, T? data) where T : default
|
||||
|
||||
Reference in new issue
Block a user