Skip to content

feat: add z-ai/glm-5.2 to OpenRouter and Nous model lists - #47391

Merged
kshitijk4poor merged 1 commit into
NousResearch:mainfrom
kshitijk4poor:feat/add-glm-5.2
Jun 16, 2026
Merged

feat: add z-ai/glm-5.2 to OpenRouter and Nous model lists#47391
kshitijk4poor merged 1 commit into
NousResearch:mainfrom
kshitijk4poor:feat/add-glm-5.2

Conversation

@kshitijk4poor

@kshitijk4poor kshitijk4poor commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator

Z.ai released GLM 5.2 on 2026-06-15, available on OpenRouter: https://openrouter.ai/z-ai/glm-5.2

GLM-5.2 is Z.ai's flagship for long-horizon tasks, shipping a 1M-token context window (up from 200K on GLM 5.1) with tool calling. Per the OpenRouter /api/v1/models API: text-only, context_length 1048576, tools supported. There is no separate -fast variant (unlike Opus 4.8).

Context: most of GLM 5.2 already landed

The 1M context length (agent/model_metadata.py), the native zai picker entry (_PROVIDER_MODELS["zai"]), the setup wizard (hermes_cli/setup.py), and the Z.ai coding-plan auth entries (hermes_cli/auth.py) for glm-5.2 are already on main. This PR fills the one remaining gap: the two aggregator surfaces where z-ai/glm-5.1 appears but z-ai/glm-5.2 did not — mirroring how Opus 4.8 was added to "the OpenRouter fallback snapshot and the Nous Portal curated list."

Changes

  • hermes_cli/models.py — add z-ai/glm-5.2 to the OpenRouter fallback snapshot (OPENROUTER_MODELS) and the Nous curated list (_PROVIDER_MODELS["nous"]), newest flagship first. Live catalogs surface it automatically when reachable; the fallback lists matter when the manifest fetch fails.
  • website/static/api/model-catalog.json — regenerated via scripts/build_model_catalog.py (not hand-edited) so the manifest stays in sync with the source lists; guarded by tests/hermes_cli/test_model_catalog.py.

Verification

  • tests/hermes_cli/test_model_catalog.py (28), tests/agent/test_model_metadata.py (105), tests/hermes_cli/test_provider_live_curated_merge.py (9) — 142 passed.
  • Runtime: confirmed z-ai/glm-5.2 present in OpenRouter snapshot, Nous list, and zai native list; context resolves to 1,048,576.
  • Live API roundtrip through OpenRouter:
    hermes chat -Q -q "Reply with exactly: TEST-OK and your model id." --model z-ai/glm-5.2 --provider openrouter
    → TEST-OK z-ai/glm-5.2
    

Infographic

glm-5.2-support

Z.ai released GLM 5.2 on 2026-06-15, available on OpenRouter:
  - https://openrouter.ai/z-ai/glm-5.2

GLM-5.2 is Z.ai's flagship for long-horizon tasks, shipping a 1M-token
context window (up from 200K on GLM 5.1) and tool calling. Per the
OpenRouter API: text-only, context_length 1048576, tools supported.
No separate -fast variant exists.

The 1M context length, native zai picker entry, setup wizard, and Z.ai
coding-plan auth entries for glm-5.2 already landed on main. This fills
the remaining gap: the two aggregator surfaces where glm-5.1 appears but
glm-5.2 did not.

Changes:

  hermes_cli/models.py
    - Add z-ai/glm-5.2 to the OpenRouter fallback snapshot (OPENROUTER_MODELS)
      and the Nous Portal curated list (_PROVIDER_MODELS["nous"]), newest
      flagship first. Live catalogs surface it automatically when reachable;
      the fallback lists matter when the manifest fetch fails.

  website/static/api/model-catalog.json
    - Regenerated via scripts/build_model_catalog.py (not hand-edited) so the
      manifest stays in sync with the source lists; guarded by
      tests/hermes_cli/test_model_catalog.py.
@alt-glitch alt-glitch added type/feature New feature or request comp/cli CLI entry point, hermes_cli/, setup wizard provider/zai ZAI provider P3 Low — cosmetic, nice to have labels Jun 16, 2026
@kshitijk4poor
kshitijk4poor merged commit 8fa562a into NousResearch:main Jun 16, 2026
35 checks passed
waefrebeorn pushed a commit to waefrebeorn/slermes that referenced this pull request Jul 2, 2026
…-5.2

feat: add z-ai/glm-5.2 to OpenRouter and Nous model lists
habarmc1223-sudo pushed a commit to habarmc1223-sudo/hermes-agent-fluxmem that referenced this pull request Jul 8, 2026
…-5.2

feat: add z-ai/glm-5.2 to OpenRouter and Nous model lists
santhreal pushed a commit to santhreal/hermes-agent that referenced this pull request Jul 13, 2026
…-5.2

feat: add z-ai/glm-5.2 to OpenRouter and Nous model lists
Gravezzz pushed a commit to Gravezzz/hermes-agent that referenced this pull request Jul 21, 2026
…-5.2

feat: add z-ai/glm-5.2 to OpenRouter and Nous model lists
@kshitijk4poor
kshitijk4poor deleted the feat/add-glm-5.2 branch August 5, 2026 07:07
leewenjie pushed a commit to leewenjie/hermes-agent that referenced this pull request Aug 7, 2026
…-5.2

feat: add z-ai/glm-5.2 to OpenRouter and Nous model lists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have provider/zai ZAI provider type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants