mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-14 21:48: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,37 @@
|
||||
namespace AIStudio.Assistants.ModelComparison;
|
||||
|
||||
/// <summary>
|
||||
/// What one model answered, together with how the request went.
|
||||
/// </summary>
|
||||
public sealed record ModelComparisonAnswer
|
||||
{
|
||||
/// <summary>
|
||||
/// The name to show for the model. It says who wrote the answer, and is not shown until the
|
||||
/// user has voted.
|
||||
/// </summary>
|
||||
public required string Label { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The answer without the thinking of the model. Only an answer which is
|
||||
/// Completed is complete: after a failure or a cancellation, this is whatever
|
||||
/// arrived before, and it must not be shown as a result.
|
||||
/// </summary>
|
||||
public required string Text { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the model answered. False when the request failed, when the user canceled it, and
|
||||
/// when the model ended without saying anything.
|
||||
/// </summary>
|
||||
public required bool Completed { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The time from sending the request until the first piece of the answer arrived, or null when
|
||||
/// nothing arrived.
|
||||
/// </summary>
|
||||
public TimeSpan? FirstTokenTime { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// The time from sending the request until the answer was complete, or null when it never was.
|
||||
/// </summary>
|
||||
public TimeSpan? TotalTime { get; init; }
|
||||
}
|
||||
Reference in new issue
Block a user