feat(models): add GLM 5.2 managed model support#17
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.