Skip to content

feat(models): add GLM 5.2 managed model support#17

Merged
xjdr-noumena merged 1 commit into
mainfrom
feat/glm-5.2-support
Jun 20, 2026
Merged

feat(models): add GLM 5.2 managed model support#17
xjdr-noumena merged 1 commit into
mainfrom
feat/glm-5.2-support

Conversation

@xjdr-noumena

Copy link
Copy Markdown
Contributor

Adds GLM 5.2 as a managed first-party model alongside Kimi 2.7 Coder. Includes routing headers, streaming tool-call hardening, and schema coercion fixes.

Register GLM 5.2 alongside Kimi 2.7 Coder in the managed model profile
list. Selecting GLM via /model or --model now routes requests through the
OpenAI-compatible client with the x-noumena-model header, and the GLM
profile exposes a 1M-token prompt budget.

Also hardens the OpenAI-compatible streaming adapter for GLM-style
tool-call deltas: stable tool-call keying (index, id, or arrival
position), deferred content_block_start when the name arrives late, and
argument chunk merging for snapshot-style backends.

Includes tool schema robustness fixes so numeric task IDs and skill
arguments are coerced to strings before validation.

- Add GLM_5_2_MODEL, GLM_5_2_MAX_PROMPT_TOKENS, and GLM 5.2 managed profile
- Add routingModel field to managed profiles; set x-noumena-model in HTTP/WS2 paths
- Stable tool-call state tracking in streamOpenAIChatCompletionAsAnthropicEvents
- Coerce taskId and skill args to string in TaskGetTool, TaskUpdateTool, SkillTool
- Regression tests for GLM alias resolution, 1M context window, autocompact,
  parallel no-index tool calls, late tool names, and argument snapshots
- Update README to document GLM selection and aliases
@xjdr-noumena xjdr-noumena merged commit 43363bd into main Jun 20, 2026
@xjdr-noumena xjdr-noumena deleted the feat/glm-5.2-support branch June 20, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant