From c9e026b5de12f8a0361a61082390aa8779d99f7b Mon Sep 17 00:00:00 2001 From: ririnto Date: Sat, 13 Jun 2026 18:04:46 +0900 Subject: [PATCH 1/3] feat(zai-coding-plan): add GLM-5.2 model metadata --- providers/zai-coding-plan/models/glm-5.2.toml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 providers/zai-coding-plan/models/glm-5.2.toml diff --git a/providers/zai-coding-plan/models/glm-5.2.toml b/providers/zai-coding-plan/models/glm-5.2.toml new file mode 100644 index 000000000..3960e778b --- /dev/null +++ b/providers/zai-coding-plan/models/glm-5.2.toml @@ -0,0 +1,35 @@ +name = "GLM-5.2" +release_date = "2026-06-13" +last_updated = "2026-06-13" +family = "glm" +reasoning = true +tool_call = true +temperature = true +structured_output = true +attachment = false +open_weights = false + +[[reasoning_options]] +type = "effort" +values = ["high", "max"] + +[interleaved] +field = "reasoning_content" + +[cost] +input = 0 +output = 0 +cache_read = 0 +cache_write = 0 + +[limit] +context = 1000000 +output = 131072 + +[modalities] +input = ["text"] +output = ["text"] + +[provider] +npm = "@ai-sdk/anthropic" +api = "https://api.z.ai/api/anthropic" From d210e45dd57f9c5f811c4fd57370f8140bd95e80 Mon Sep 17 00:00:00 2001 From: ririnto Date: Sat, 13 Jun 2026 22:39:29 +0900 Subject: [PATCH 2/3] refactor(zai-coding-plan): split GLM-5.2 metadata into model + base_model reference Move provider-agnostic facts (name, family, dates, capability flags, limit, modalities) into models/zhipuai/glm-5.2.toml and reference it via base_model in the provider TOML, which now keeps only provider- specific fields (reasoning_options, interleaved, cost, per-model anthropic [provider] override). Per README wrapper-provider guidance. --- models/zhipuai/glm-5.2.toml | 18 ++++++++++++++++++ providers/zai-coding-plan/models/glm-5.2.toml | 19 +------------------ 2 files changed, 19 insertions(+), 18 deletions(-) create mode 100644 models/zhipuai/glm-5.2.toml diff --git a/models/zhipuai/glm-5.2.toml b/models/zhipuai/glm-5.2.toml new file mode 100644 index 000000000..82c36e20b --- /dev/null +++ b/models/zhipuai/glm-5.2.toml @@ -0,0 +1,18 @@ +name = "GLM-5.2" +family = "glm" +release_date = "2026-06-13" +last_updated = "2026-06-13" +attachment = false +reasoning = true +temperature = true +tool_call = true +structured_output = true +open_weights = false + +[limit] +context = 1_000_000 +output = 131_072 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/zai-coding-plan/models/glm-5.2.toml b/providers/zai-coding-plan/models/glm-5.2.toml index 3960e778b..28e0ac0df 100644 --- a/providers/zai-coding-plan/models/glm-5.2.toml +++ b/providers/zai-coding-plan/models/glm-5.2.toml @@ -1,13 +1,4 @@ -name = "GLM-5.2" -release_date = "2026-06-13" -last_updated = "2026-06-13" -family = "glm" -reasoning = true -tool_call = true -temperature = true -structured_output = true -attachment = false -open_weights = false +base_model = "zhipuai/glm-5.2" [[reasoning_options]] type = "effort" @@ -22,14 +13,6 @@ output = 0 cache_read = 0 cache_write = 0 -[limit] -context = 1000000 -output = 131072 - -[modalities] -input = ["text"] -output = ["text"] - [provider] npm = "@ai-sdk/anthropic" api = "https://api.z.ai/api/anthropic" From c3beda0405f4db73df2ba04181779ec147fe48bf Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Sat, 13 Jun 2026 11:17:47 -0500 Subject: [PATCH 3/3] fix(zai-coding-plan): use default GLM-5.2 provider --- providers/zai-coding-plan/models/glm-5.2.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/providers/zai-coding-plan/models/glm-5.2.toml b/providers/zai-coding-plan/models/glm-5.2.toml index 28e0ac0df..64ae3c242 100644 --- a/providers/zai-coding-plan/models/glm-5.2.toml +++ b/providers/zai-coding-plan/models/glm-5.2.toml @@ -12,7 +12,3 @@ input = 0 output = 0 cache_read = 0 cache_write = 0 - -[provider] -npm = "@ai-sdk/anthropic" -api = "https://api.z.ai/api/anthropic"