Skip to content

v1.5.0

Choose a tag to compare

@wenyinos wenyinos released this 15 Nov 06:52
· 2 commits to main since this release

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-DevEco and GLM-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.3 keep working: both ids are accepted, while the upstream wire always receives the bare id.
  • small_model follows 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/models returns context_length and max_output_tokens alongside each id.
  • A max_tokens above 32K is clamped to 32K before forwarding; an explicit 400/413 length error gets a hint naming the channel limit.
  • GLM's 403 ModelServiceError is 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 a Session-Id longer than 32 characters. The proxy compacts UUIDs and hashes longer ids, and sends the same compact id to exitSessionQueue. x-deveco-task and x-deveco-parent-session are normalized the same way.
  • Reasoning effort is defensive now: declared tiers are snapped (GLM-5.3: medium → high, xhigh → max), none/off fall back to low when 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.