qwen-code/packages/core
Shaojin Wen bb0db932fa
fix(core): default GLM-5.2+ and GLM-6.x onward to 1M context (#5103)
GLM-5.2 ships a 1M context window, and 1M is becoming the norm for newer
GLM releases. The previous `/^glm-5/` rule capped the whole GLM-5 line at
202752, so every new model would need a code change.

Make 1M the forward default for GLM-5.2+, GLM-6.x..9.x and two-digit
majors, while pinning the confirmed 200K families (GLM-5 / 5.0 / 5.1 and
GLM-4.x or older) explicitly. Third-party deploy prefixes (e.g.
`pai/glm-5.3`) are already stripped by normalize(), so they match the same
rules. Non-numeric names (e.g. glm-z1) stay on the conservative fallback.
2026-06-14 21:17:45 +08:00
..
scripts
src fix(core): default GLM-5.2+ and GLM-6.x onward to 1M context (#5103) 2026-06-14 21:17:45 +08:00
vendor
index.ts
package.json chore(release): v0.18.0 [skip ci] 2026-06-12 22:59:56 +08:00
test-setup.ts feat(memory): managed auto-memory and auto-dream system (#3087) 2026-04-16 20:05:45 +08:00
tsconfig.json fix: upgrade @lydell/node-pty to 1.2.0-beta.10 to fix PTY FD leak 2026-04-01 07:55:56 +08:00
vitest.config.ts