mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-14 21:28: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,45 @@
|
||||
namespace AIStudio.Assistants.ModelComparison;
|
||||
|
||||
public static class ModelComparisonModeExtensions
|
||||
{
|
||||
private static string TB(string fallbackEN) => Tools.PluginSystem.I18N.I.T(fallbackEN, typeof(ModelComparisonModeExtensions).Namespace, nameof(ModelComparisonModeExtensions));
|
||||
|
||||
/// <param name="mode">The mode of the Model Comparison assistant.</param>
|
||||
extension(ModelComparisonMode mode)
|
||||
{
|
||||
/// <summary>
|
||||
/// The short name of the mode, which tells the user in which of the two modes they are.
|
||||
/// </summary>
|
||||
public string Name => mode switch
|
||||
{
|
||||
ModelComparisonMode.TASKS => TB("Everyday Tasks"),
|
||||
|
||||
_ => TB("Answer Variance"),
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The title of the page of the mode, which names the assistant together with the mode.
|
||||
/// </summary>
|
||||
public string PageTitle => string.Format(TB("Model Comparison: {0}"), mode.Name);
|
||||
|
||||
/// <summary>
|
||||
/// The page of the mode.
|
||||
/// </summary>
|
||||
public string Route => mode switch
|
||||
{
|
||||
ModelComparisonMode.TASKS => Routes.ASSISTANT_MODEL_COMPARISON_TASKS,
|
||||
|
||||
_ => Routes.ASSISTANT_MODEL_COMPARISON_STABILITY,
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// The icon of the mode.
|
||||
/// </summary>
|
||||
public string Icon => mode switch
|
||||
{
|
||||
ModelComparisonMode.TASKS => AppIcons.COMPARISON_TASKS,
|
||||
|
||||
_ => AppIcons.COMPARISON_STABILITY,
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user