mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-14 22:08:27 +00:00
Added the Model Comparison assistant for blind comparisons of two models (#1009)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
12f26445ba
commit
b7255694cd
221 files changed
+19989
-90
No files matched your search
@@ -0,0 +1,32 @@
|
||||
using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace AIStudio.Components;
|
||||
|
||||
/// <summary>
|
||||
/// A provider selection with the confidence of the selected provider next to it, for a page which lets the user choose
|
||||
/// several providers: the confidence card in the footer of an assistant knows only one of them.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The confidence shows only when the user wants to see it, see DataConfidence.ShowProviderConfidence. Like
|
||||
/// ProviderSelection, this takes the component from the cascading parameter of its page.
|
||||
/// </remarks>
|
||||
public partial class ProviderSelectionWithConfidence : MSGComponentBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the selected provider.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public AIStudio.Settings.Provider ProviderSettings { get; set; } = AIStudio.Settings.Provider.NONE;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets what happens when the user selects another provider.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public EventCallback<AIStudio.Settings.Provider> ProviderSettingsChanged { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the validation of the selected provider, which returns an issue or null.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public Func<AIStudio.Settings.Provider, string?> ValidateProvider { get; set; } = _ => null;
|
||||
}
|
||||
Reference in new issue
Block a user