mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-08-21 09:52:56 +00:00
Forgot this
This commit is contained in:
parent
2e98abc2a7
commit
526469f5e7
@ -2,13 +2,15 @@ using System.Diagnostics.CodeAnalysis;
|
|||||||
|
|
||||||
using AIStudio.Provider;
|
using AIStudio.Provider;
|
||||||
using AIStudio.Settings;
|
using AIStudio.Settings;
|
||||||
|
using AIStudio.Tools.PluginSystem;
|
||||||
using Microsoft.AspNetCore.Components;
|
using Microsoft.AspNetCore.Components;
|
||||||
|
|
||||||
namespace AIStudio.Components;
|
namespace AIStudio.Components;
|
||||||
|
|
||||||
public partial class ConfigurationProviderSelection : MSGComponentBase
|
public partial class ConfigurationProviderSelection : MSGComponentBase
|
||||||
{
|
{
|
||||||
|
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ConfigurationProviderSelection).Namespace, nameof(ConfigurationProviderSelection));
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public Func<string> SelectedValue { get; set; } = () => string.Empty;
|
public Func<string> SelectedValue { get; set; } = () => string.Empty;
|
||||||
|
|
||||||
@ -25,7 +27,7 @@ public partial class ConfigurationProviderSelection : MSGComponentBase
|
|||||||
public Func<bool> Disabled { get; set; } = () => false;
|
public Func<bool> Disabled { get; set; } = () => false;
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public Func<string> HelpText { get; set; } = () => "Select a provider that is preselected.";
|
public Func<string> HelpText { get; set; } = () => TB("Select a provider that is preselected.");
|
||||||
|
|
||||||
[Parameter]
|
[Parameter]
|
||||||
public Tools.Components Component { get; set; } = Tools.Components.NONE;
|
public Tools.Components Component { get; set; } = Tools.Components.NONE;
|
||||||
|
Loading…
Reference in New Issue
Block a user