Repository navigation
v1.5.0
DevEco-specific model names, channel limits, and client compatibility
Models are named for the DevEco deployment
- The model list and injected catalog now expose
GLM-5.1-DevEcoandGLM-5.3-DevEco. These are Huawei-deployed variants, not the public Zhipu models; the suffix makes the difference explicit. - Existing configs and clients that still send
GLM-5.1/GLM-5.3keep working: both ids are accepted, while the upstream wire always receives the bare id. small_modelfollows the exposed name (deveco/GLM-5.3-DevEco); legacy user model entries are merged onto the exposed key.
Channel limits are visible and enforced
- The DevEco channel declares 170,000 context and 32,000 max output for both models — lower than the public Zhipu specs. The static fallback now matches those numbers.
GET /v2/modelsreturnscontext_lengthandmax_output_tokensalongside each id.- A
max_tokensabove 32K is clamped to 32K before forwarding; an explicit 400/413 length error gets a hint naming the channel limit. - GLM's 403
ModelServiceErroris left untouched: it can mean overload as well as a length overflow, so the proxy does not guess.
Client compatibility
- ZCode sends a 36-character UUID in
x-session-id; DevEco rejects aSession-Idlonger than 32 characters. The proxy compacts UUIDs and hashes longer ids, and sends the same compact id toexitSessionQueue.x-deveco-taskandx-deveco-parent-sessionare normalized the same way. - Reasoning effort is defensive now: declared tiers are snapped (GLM-5.3: medium → high, xhigh → max),
none/offfall back tolowwhen the model declares no "off" tier, and unknown / non-string / empty values are dropped so the upstream default applies instead of a validation error.
Documentation
- The READMEs now describe the two channel deployments behind the exposed ids: GLM-5.3-W8A8C8 (755.71B, INT8 weights/activations plus INT8 KV cache) and GLM-5.1-W4A8 (395.82B), including their Ascend/vLLM-Ascend deployment notes, repository licenses, and why the channel's 170K/32K limits are separate from the ModelScope cards.
Verification
182 tests passing across 16 files; typecheck / lint / build clean. Live checks: a ZCode-style hyphenated session id returns 200, GLM-5.1-DevEco and the legacy GLM-5.1 both return 200, an image request is routed to the vision model, and /v2/models reports the channel limits.