fix(eltex): use the real 1M context window like ai-glm
ctx: in ai-eltex filled up too fast: the launcher capped the window at 200K (CLAUDE_CODE_AUTO_COMPACT_WINDOW from the admins' doc plus CLAUDE_CODE_DISABLE_1M_CONTEXT), while anth-glm-5.3 is the same glm-5.3 on the Z.ai Anthropic endpoint that ai-glm runs with a 1M window. A 598K-token request went through the proxy fine (glm-5.3 answered correctly from the last line). Claude Code now reports contextWindow 1000000. The 200K cap also made Z.ai's analyze_image turns dangerous: their usage covers both internal model passes (~x2), e.g. 82.7K -> 166.7K (83% of 200K), which could trigger an early auto-compact. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -141,6 +141,17 @@ test_eltex_no_tool_search() {
|
||||
fi
|
||||
}
|
||||
|
||||
# ── ai-eltex: окно 1M, как у ai-glm (иначе ctx: завышен в ~5 раз) ─────────
|
||||
test_eltex_context_window() {
|
||||
if echo "$ELTEX_SECTION" | grep -q '^CLAUDE_CODE_MAX_CONTEXT_TOKENS=1000000' \
|
||||
&& ! echo "$ELTEX_SECTION" | grep -q '^CLAUDE_CODE_DISABLE_1M_CONTEXT=' \
|
||||
&& ! echo "$ELTEX_SECTION" | grep -q '^CLAUDE_CODE_AUTO_COMPACT_WINDOW='; then
|
||||
ok "ai-eltex: 1M context window, no 200K compact window / DISABLE_1M"
|
||||
else
|
||||
fail "ai-eltex: must set CLAUDE_CODE_MAX_CONTEXT_TOKENS=1000000 without DISABLE_1M / AUTO_COMPACT_WINDOW"
|
||||
fi
|
||||
}
|
||||
|
||||
# ── logout hook: /logout-eltex удаляет eltex_key ──────────────────────────
|
||||
test_logout_eltex() {
|
||||
local tmp_home rc=0
|
||||
@@ -367,6 +378,7 @@ test_glm_default_effort
|
||||
test_eltex_claude_launcher
|
||||
test_eltex_model_from_key
|
||||
test_eltex_no_tool_search
|
||||
test_eltex_context_window
|
||||
test_logout_eltex
|
||||
test_gemini_native_launcher
|
||||
test_cursor_native_launcher
|
||||
|
||||
Reference in New Issue
Block a user