remove reasoning guard

This commit is contained in:
2026-09-08 18:39:04 +02:00
parent acad70aaac
commit 6dae58bf42
9 changed files with 29 additions and 1536 deletions
-21
View File
@@ -311,11 +311,6 @@ namespace AnotherReplayReader
_contextLengthBox.Text = _currentModel.ContextLength.ToString();
_contextBudgetBox.Text = _currentModel.ContextBudget is { } budget ? budget.ToString() : "0";
_supportsSseCheck.IsChecked = _currentModel.IsStream;
_reasoningGuardCheck.IsChecked = _currentModel.ReasoningGuardEnabled;
_reasoningTokenLimitBox.Text =
_currentModel.ReasoningGuardTokenLimit is { } guardLimit
? guardLimit.ToString()
: "";
// 显示 ExtraParameters 为缩进 JSON
var json = JsonSerializer.Serialize(
@@ -370,8 +365,6 @@ namespace AnotherReplayReader
ContextLength = known.ContextLength,
ContextBudget = known.ContextBudget,
IsStream = known.IsStream,
ReasoningGuardEnabled = known.ReasoningGuardEnabled,
ReasoningGuardTokenLimit = known.ReasoningGuardTokenLimit,
ExtraParameters = new Dictionary<string, object>(known.ExtraParameters)
});
}
@@ -474,16 +467,6 @@ namespace AnotherReplayReader
_currentModel.ContextBudget = null;
}
_currentModel.IsStream = _supportsSseCheck.IsChecked == true;
_currentModel.ReasoningGuardEnabled = _reasoningGuardCheck.IsChecked == true;
if (int.TryParse(_reasoningTokenLimitBox.Text, out int guardLimit)
&& guardLimit > 0)
{
_currentModel.ReasoningGuardTokenLimit = guardLimit;
}
else
{
_currentModel.ReasoningGuardTokenLimit = null;
}
try
{
@@ -529,8 +512,6 @@ namespace AnotherReplayReader
_currentModel.IsStream = known.IsStream;
_currentModel.ContextLength = known.ContextLength;
_currentModel.ContextBudget = known.ContextBudget;
_currentModel.ReasoningGuardEnabled = known.ReasoningGuardEnabled;
_currentModel.ReasoningGuardTokenLimit = known.ReasoningGuardTokenLimit;
RefreshModelList();
_modelComboBox.SelectedItem = _modelComboBox.Items
.OfType<ModelDisplayItem>()
@@ -550,8 +531,6 @@ namespace AnotherReplayReader
_contextLengthBox.Text = "";
_contextBudgetBox.Text = "";
_supportsSseCheck.IsChecked = false;
_reasoningGuardCheck.IsChecked = false;
_reasoningTokenLimitBox.Text = "";
_extraParamsBox.Text = "";
}
}