Add GLM-5.2 to wafer.ai provider#2713
Merged
Merged
Conversation
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).
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.
What
Adds
GLM-5.2to thewafer.aiprovider catalog. Wafer serves it serverless but it was missing from models.dev, so theopencodeCLI (which pulls its provider/model list fromhttps://models.dev/api.json) did not listwafer.ai/GLM-5.2— onlywafer.ai/GLM-5.1.Verification
Confirmed live on wafer via the unauthenticated models endpoint:
Pricing & limits (from live wafer /v1/models)
Conventions
Matches the existing
providers/wafer.ai/models/GLM-5.1.tomlconvention: self-contained TOML (nobase_model),reasoning_options = [{ type = "toggle" }], underscore-separated numeric literals. Same release_date as the zhipuai base model (models/zhipuai/glm-5.2.toml);last_updatedset to today (wafer listed it on 2026-06-21 per thecreatedtimestamp in /v1/models).