Skip to content

Add GLM-5.2 to wafer.ai provider#2713

Merged
rekram1-node merged 2 commits into
anomalyco:devfrom
flamerged:add-wafer-glm-5.2
Jun 23, 2026
Merged

Add GLM-5.2 to wafer.ai provider#2713
rekram1-node merged 2 commits into
anomalyco:devfrom
flamerged:add-wafer-glm-5.2

Conversation

@flamerged

Copy link
Copy Markdown
Contributor

What

Adds GLM-5.2 to the wafer.ai provider catalog. Wafer serves it serverless but it was missing from models.dev, so the opencode CLI (which pulls its provider/model list from https://models.dev/api.json) did not list wafer.ai/GLM-5.2 — only wafer.ai/GLM-5.1.

Verification

Confirmed live on wafer via the unauthenticated models endpoint:

$ curl -sS https://pass.wafer.ai/v1/models | jq '.data[] | select(.id=="GLM-5.2")'
{
  "id": "GLM-5.2",
  "max_model_len": 1048576,
  "zdr_supported": true,
  "wafer": {
    "display_name": "GLM-5.2",
    "tier": "serverless_only",
    "context_length": 1048576,
    "capabilities": { "vision": false, "tools": true, "reasoning": true, ... },
    "pricing": {
      "currency": "usd",
      "input_cents_per_million": 120,
      "output_cents_per_million": 410,
      "cache_read_cents_per_million": 20
    }
  }
}

Pricing & limits (from live wafer /v1/models)

  • context: 1,048,576
  • output: 131,072
  • input: $1.20 / output: $4.10 / cache_read: $0.20 per 1M tokens
  • reasoning: true (toggle), tool_call: true, structured_output: true
  • attachment/vision: false, text-only I/O

Conventions

Matches the existing providers/wafer.ai/models/GLM-5.1.toml convention: self-contained TOML (no base_model), reasoning_options = [{ type = "toggle" }], underscore-separated numeric literals. Same release_date as the zhipuai base model (models/zhipuai/glm-5.2.toml); last_updated set to today (wafer listed it on 2026-06-21 per the created timestamp in /v1/models).

Wafer serves GLM-5.2 serverless (confirmed via GET https://pass.wafer.ai/v1/models)
but it was missing from the models.dev catalog, so the opencode CLI (which pulls
its provider/model list from models.dev) did not list wafer.ai/GLM-5.2.

Pricing and limits from the live wafer /v1/models endpoint:
- context: 1048576
- output: 131072
- input: $1.20 / output: $4.10 / cache_read: $0.20 per million tokens
- reasoning: true (toggle), tool_call: true, structured_output: true
- vision/attachment: false, text-only I/O

Matches the existing wafer.ai/GLM-5.1.toml convention (self-contained TOML,
toggle reasoning_options, underscore-separated numeric literals).
Comment thread providers/wafer.ai/models/GLM-5.2.toml Outdated
Comment thread providers/wafer.ai/models/GLM-5.2.toml Outdated
@flamerged flamerged requested a review from rekram1-node June 23, 2026 11:54
@rekram1-node rekram1-node merged commit 838ee5b into anomalyco:dev Jun 23, 2026
1 check passed
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.

2 participants