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,19 @@
|
||||
namespace AIStudio.Assistants.ModelComparison;
|
||||
|
||||
/// <summary>
|
||||
/// Two models compared with each other, in the same order whichever of them was the first model of a comparison.
|
||||
/// </summary>
|
||||
/// <param name="First">The model which comes first by ModelComparisonModelKey.CompareTo.</param>
|
||||
/// <param name="Second">The other model.</param>
|
||||
public readonly record struct ModelComparisonPairKey(ModelComparisonModelKey First, ModelComparisonModelKey Second)
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the pair of two models.
|
||||
/// </summary>
|
||||
/// <param name="one">One model.</param>
|
||||
/// <param name="other">The other model.</param>
|
||||
/// <returns>The pair, in its own order.</returns>
|
||||
public static ModelComparisonPairKey Of(ModelComparisonModelKey one, ModelComparisonModelKey other) => one.CompareTo(other) <= 0
|
||||
? new(one, other)
|
||||
: new(other, one);
|
||||
}
|
||||
Reference in new issue
Block a user