chore: version up to 2.80.37 and package with response recovery
This commit is contained in:
+11
-1
@@ -38,6 +38,13 @@ export interface IAgentConfig {
|
||||
autoCompactHistory: boolean;
|
||||
/** 작은 모델(≤4B) 감지 시 예산 계산에 쓸 유효 context window 상한. 0 = 비활성화. */
|
||||
smallModelContextCap: number;
|
||||
// ─── 응답 복구 (Thought Quarantine / Auto-Continuation) ───
|
||||
/** 답변이 출력 토큰 한계에 걸리면 사용자 개입 없이 내부적으로 이어서 생성. */
|
||||
autoContinueOnOutputLimit: boolean;
|
||||
/** 자동 이어쓰기 최대 횟수 (무한 반복 방지). 0 = 비활성화. */
|
||||
maxAutoContinuations: number;
|
||||
/** 모델이 내부 사고만 출력하고 답변이 없으면 "최종 답변만" 지시로 1회 재생성. */
|
||||
finalOnlyRetryOnThoughtLeak: boolean;
|
||||
}
|
||||
|
||||
// ─── 경로 정규화 유틸리티 ───
|
||||
@@ -115,7 +122,10 @@ export function getConfig(): IAgentConfig {
|
||||
return v === 'truncateMiddle' || v === 'rollingWindow' ? v : 'stopAtLimit';
|
||||
})(),
|
||||
autoCompactHistory: cfg.get<boolean>('autoCompactHistory', true),
|
||||
smallModelContextCap: Math.max(0, cfg.get<number>('smallModelContextCap', 8192))
|
||||
smallModelContextCap: Math.max(0, cfg.get<number>('smallModelContextCap', 8192)),
|
||||
autoContinueOnOutputLimit: cfg.get<boolean>('autoContinueOnOutputLimit', true),
|
||||
maxAutoContinuations: Math.max(0, Math.min(10, cfg.get<number>('maxAutoContinuations', 3))),
|
||||
finalOnlyRetryOnThoughtLeak: cfg.get<boolean>('finalOnlyRetryOnThoughtLeak', true)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user