Commit c0ce260
authored
feat(models): add GLM-5.1 to the Z.ai GLM Coding Plan (#1650)
## Summary
- Adds GLM-5.1 as a new model in the Z.ai Coding Plan (`zai-coding`
provider), placed above GLM-5 with the `recommended` flag,
`context_length: 204800`, and `max_completion_tokens: 131072` (matching
GLM-5 specs per the [Z.ai docs](https://docs.z.ai/devpack/using5.1)).
- Registers `z-ai/glm-5.1` in `preferredModels`, `KILOCODE_CATALOG_IDS`
(for older OpenClaw builds), `forbidden-free-models`, and the legacy
`modelstats` route.
## Verification
- Reviewed all changed files manually; all new entries follow the exact
same TypeScript shapes as existing GLM-5 entries.
- `pnpm typecheck` could not run due to missing environment dependencies
(`tsgo` not found), which is a pre-existing environment issue unrelated
to this change.
## Visual Changes
N/A
## Reviewer Notes
GLM-5.1 has identical context/token limits to GLM-5 (204800 / 131072).
The description is derived from GLM-5's description updated to reference
5.1 as the latest iteration, per the instructions to copy GLM-5. The
`modelstats` cost figures are copied from GLM-5 as a placeholder since
no separate pricing data is available for 5.1 yet (this route serves
legacy clients with mock data).1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
101 | 110 | | |
102 | 111 | | |
103 | 112 | | |
| |||
0 commit comments