세션 컨텍스트 창 추정: Anthropic은 200K로(8192 폴백으로 토큰 사용률이 100%를 넘게 뜨던 허수 수정)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
kimandClaude Sonnet 5.5 committed 2026-10-20 16:43:35 +09:00
1 parent 62c4eae8a3
commit 042768f067
1 file changed
+10
+10
View File
@@ -210,6 +210,16 @@ export function resolveNumCtx(): number {
} }
} catch { /* fall through */ } } catch { /* fall through */ }
// 3b. Anthropic(Claude): Ollama의 /api/show가 모르는 모델이라 아래 단계를 모두 놓치고 8192로 떨어져, 세션 패널이
// 156%·419% 같은 허수를 띄웠다(2026-10-20, 기본 모델을 Haiku 5.5로 옮긴 뒤). 보수적으로 200K로 본다.
try {
const cfg: any = getConfig().getConfig();
if (String(cfg?.llm?.provider || '') === 'anthropic') {
_cachedNumCtx = 200000;
return _cachedNumCtx;
}
} catch { /* fall through */ }
// 4. Query Ollama for the active model's actual context_length // 4. Query Ollama for the active model's actual context_length
try { try {
const cfg: any = getConfig().getConfig(); const cfg: any = getConfig().getConfig();