코워크 코드 내부설정 컨텍스트 토큰 기본값을 32K로 상향
LlmSettings.MaxContextTokens 기본값을 32768로 조정하고 메인 설정의 컨텍스트 토큰 카드에 32K 선택지를 추가했다. AgentSettingsWindow의 잘못된 입력 fallback도 32K 기준으로 바꿔 내부설정이 4K로 되돌아가지 않도록 정리했다. 검증: dotnet build src/AxCopilot/AxCopilot.csproj -c Release -v minimal -p:OutputPath=bin\\verify_context32k\\ -p:IntermediateOutputPath=obj\\verify_context32k\\ / dotnet test src/AxCopilot.Tests/AxCopilot.Tests.csproj -c Release -v minimal --filter SettingsServiceTests -p:OutputPath=bin\\verify_context32k_tests\\ -p:IntermediateOutputPath=obj\\verify_context32k_tests\
This commit is contained in:
@@ -773,9 +773,9 @@ public class LlmSettings
|
||||
[JsonPropertyName("streaming")]
|
||||
public bool Streaming { get; set; } = true;
|
||||
|
||||
/// <summary>최대 컨텍스트 토큰 수. 기본값 4096.</summary>
|
||||
/// <summary>최대 컨텍스트 토큰 수. 기본값 32768.</summary>
|
||||
[JsonPropertyName("maxContextTokens")]
|
||||
public int MaxContextTokens { get; set; } = 4096;
|
||||
public int MaxContextTokens { get; set; } = 32_768;
|
||||
|
||||
/// <summary>대화 보관 기간(일). 7 | 30 | 90 | 0(무제한). 기본값 30.</summary>
|
||||
[JsonPropertyName("retentionDays")]
|
||||
|
||||
@@ -549,7 +549,7 @@ public partial class AgentSettingsWindow : Window
|
||||
|
||||
_llm.EnableProactiveContextCompact = ChkEnableProactiveCompact.IsChecked == true;
|
||||
_llm.ContextCompactTriggerPercent = ParseInt(TxtContextCompactTriggerPercent.Text, 80, 10, 95);
|
||||
_llm.MaxContextTokens = ParseInt(TxtMaxContextTokens.Text, 4096, 1024, 200000);
|
||||
_llm.MaxContextTokens = ParseInt(TxtMaxContextTokens.Text, 32_768, 1024, 200000);
|
||||
_llm.MaxRetryOnError = ParseInt(TxtMaxRetryOnError.Text, 3, 0, 10);
|
||||
_llm.EnableIbmDiagnosticLog = ChkEnableIbmDiagnosticLog.IsChecked == true;
|
||||
|
||||
|
||||
@@ -3973,6 +3973,12 @@
|
||||
Style="{StaticResource AgentSubTabStyle}"
|
||||
Margin="0,0,6,6"
|
||||
Checked="AgentContextTokensCard_Checked"/>
|
||||
<RadioButton x:Name="AgentContextTokens32K"
|
||||
Content="32K"
|
||||
GroupName="AgentContextTokens"
|
||||
Style="{StaticResource AgentSubTabStyle}"
|
||||
Margin="0,0,6,6"
|
||||
Checked="AgentContextTokensCard_Checked"/>
|
||||
<RadioButton x:Name="AgentContextTokens64K"
|
||||
Content="64K"
|
||||
GroupName="AgentContextTokens"
|
||||
|
||||
@@ -197,7 +197,8 @@ public partial class SettingsWindow : Window
|
||||
var maxContextTokens = _vm.LlmMaxContextTokens;
|
||||
if (AgentContextTokens4K != null) AgentContextTokens4K.IsChecked = maxContextTokens <= 4_096;
|
||||
if (AgentContextTokens16K != null) AgentContextTokens16K.IsChecked = maxContextTokens > 4_096 && maxContextTokens <= 16_384;
|
||||
if (AgentContextTokens64K != null) AgentContextTokens64K.IsChecked = maxContextTokens > 16_384 && maxContextTokens <= 65_536;
|
||||
if (AgentContextTokens32K != null) AgentContextTokens32K.IsChecked = maxContextTokens > 16_384 && maxContextTokens <= 32_768;
|
||||
if (AgentContextTokens64K != null) AgentContextTokens64K.IsChecked = maxContextTokens > 32_768 && maxContextTokens <= 65_536;
|
||||
if (AgentContextTokens128K != null) AgentContextTokens128K.IsChecked = maxContextTokens > 65_536 && maxContextTokens <= 131_072;
|
||||
if (AgentContextTokens256K != null) AgentContextTokens256K.IsChecked = maxContextTokens > 131_072 && maxContextTokens <= 262_144;
|
||||
if (AgentContextTokens1M != null) AgentContextTokens1M.IsChecked = maxContextTokens > 262_144;
|
||||
@@ -2296,6 +2297,7 @@ public partial class SettingsWindow : Window
|
||||
_vm.LlmMaxContextTokens = rb.Name switch
|
||||
{
|
||||
"AgentContextTokens16K" => 16_384,
|
||||
"AgentContextTokens32K" => 32_768,
|
||||
"AgentContextTokens64K" => 65_536,
|
||||
"AgentContextTokens128K" => 131_072,
|
||||
"AgentContextTokens256K" => 262_144,
|
||||
|
||||
Reference in New Issue
Block a user