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
+5 -20
View File
@@ -1,4 +1,4 @@
<UserControl x:Class="AnotherReplayReader.AIProviderSettingsControl"
<UserControl x:Class="AnotherReplayReader.AIProviderSettingsControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
@@ -143,7 +143,6 @@
<RowDefinition Height="*"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
@@ -165,34 +164,20 @@
Content="支持 SSE 流式输出"
Margin="0,5"/>
<Label Grid.Row="4" Grid.Column="0" Content="推理保护"/>
<StackPanel Grid.Row="4" Grid.Column="1" Orientation="Horizontal" Margin="0,5">
<CheckBox x:Name="_reasoningGuardCheck"
Content="启用"
VerticalAlignment="Center"/>
<Label Content="推理 token 阈值"
VerticalAlignment="Center"
Margin="10,0,0,0"/>
<TextBox x:Name="_reasoningTokenLimitBox"
Width="80"
VerticalAlignment="Center"
ToolTip="留空使用 max(4096, max_tokens / 2);仅流式模型生效"/>
</StackPanel>
<Label Grid.Row="5" Grid.Column="0" Content="高级参数"/>
<Label Grid.Row="4" Grid.Column="0" Content="高级参数"/>
<TextBox x:Name="_extraParamsBox"
Grid.Row="5" Grid.Column="1"
Grid.Row="4" Grid.Column="1"
MinHeight="80"
AcceptsReturn="True"
ScrollViewer.VerticalScrollBarVisibility="Auto"/>
<StackPanel Grid.Row="6" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
<StackPanel Grid.Row="5" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
<Button Content="应用模型修改" Click="OnApplyModelClick" Margin="2"/>
<Button Content="从已知模板填充" Click="OnFillFromKnownModelsClick" Margin="2"/>
</StackPanel>
<TextBlock x:Name="_modelStatusText"
Grid.Row="7" Grid.ColumnSpan="2"
Grid.Row="6" Grid.ColumnSpan="2"
Foreground="Gray" Margin="0,5"/>
</Grid>
</DockPanel>