mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-14 20:28:27 +00:00
26 lines
853 B
Plaintext
26 lines
853 B
Plaintext
@inherits MSGComponentBase
|
|||
|
|
|
||
|
|
@if (this.Result.Judge is { } judge)
|
||
|
|
{
|
||
|
|
<MudPaper Outlined="true" Class="pa-3">
|
||
|
|
<MudStack Row="true" AlignItems="AlignItems.Center" Spacing="1" Class="mb-1">
|
||
|
|
<MudIcon Icon="@AppIcons.JUDGE" Size="Size.Small"/>
|
||
|
|
<MudText Typo="Typo.subtitle1">
|
||
|
|
@string.Format(ModelComparisonFormat.Culture, T("Judge: {0}"), judge.Label)
|
||
|
|
</MudText>
|
||
|
|
</MudStack>
|
||
|
|
@if (judge.Completed)
|
||
|
|
{
|
||
|
|
<MudText Typo="Typo.body1" Class="mb-1">
|
||
|
|
@this.PreferenceText
|
||
|
|
</MudText>
|
||
|
|
<ModelComparisonJudgeReasoning Reasoning="@judge.Reasoning"/>
|
||
|
|
}
|
||
|
|
else
|
||
|
|
{
|
||
|
|
<MudText Typo="Typo.body2">
|
||
|
|
@T("The judge did not give a usable verdict.")
|
||
|
|
</MudText>
|
||
|
|
}
|
||
|
|
</MudPaper>
|
||
|
|
}
|