From 391197e8b9972813c3ddfbd2ee7ab72a4f6e6c14 Mon Sep 17 00:00:00 2001 From: Seb Duerr Date: Tue, 6 Jan 2026 15:55:24 -0800 Subject: [PATCH 1/3] feat(cerebras): add zai-glm-4.7 model Adds a models.dev definition for Z.ai GLM 4.7 under the Cerebras provider. --- providers/cerebras/models/zai-glm-4.7.toml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 providers/cerebras/models/zai-glm-4.7.toml diff --git a/providers/cerebras/models/zai-glm-4.7.toml b/providers/cerebras/models/zai-glm-4.7.toml new file mode 100644 index 000000000..e81a22bd8 --- /dev/null +++ b/providers/cerebras/models/zai-glm-4.7.toml @@ -0,0 +1,22 @@ +name = "Z.AI GLM-4.7" +release_date = "2026-01-10" +last_updated = "2026-01-10" +attachment = false +reasoning = false +temperature = true +tool_call = true +open_weights = true + +[cost] +input = 0 +output = 0 +cache_read = 0 +cache_write = 0 + +[limit] +context = 131_072 +output = 40_000 + +[modalities] +input = ["text"] +output = ["text"] From 8b0a6ce4979b55f07023315f00d0487d0ef20040 Mon Sep 17 00:00:00 2001 From: Seb Duerr Date: Tue, 6 Jan 2026 16:08:15 -0800 Subject: [PATCH 2/3] feat(schema): add model interleaved flag - Add optional field to model schema\n- Set for Cerebras zai-glm-4.7 --- packages/core/src/schema.ts | 1 + providers/cerebras/models/zai-glm-4.7.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/core/src/schema.ts b/packages/core/src/schema.ts index 0459d02f3..792cc72f9 100644 --- a/packages/core/src/schema.ts +++ b/packages/core/src/schema.ts @@ -28,6 +28,7 @@ export const Model = z attachment: z.boolean(), reasoning: z.boolean(), tool_call: z.boolean(), + interleaved: z.boolean().optional(), structured_output: z.boolean().optional(), temperature: z.boolean().optional(), knowledge: z diff --git a/providers/cerebras/models/zai-glm-4.7.toml b/providers/cerebras/models/zai-glm-4.7.toml index e81a22bd8..b7dcf5613 100644 --- a/providers/cerebras/models/zai-glm-4.7.toml +++ b/providers/cerebras/models/zai-glm-4.7.toml @@ -5,6 +5,7 @@ attachment = false reasoning = false temperature = true tool_call = true +interleaved = false open_weights = true [cost] From 84366efe77076119ff08224a26bab7fc2e59537f Mon Sep 17 00:00:00 2001 From: Seb Duerr Date: Tue, 6 Jan 2026 16:20:00 -0800 Subject: [PATCH 3/3] revert: remove interleaved flag Remove the temporary interleaved field from the model schema and the Cerebras zai-glm-4.7 definition. --- providers/cerebras/models/zai-glm-4.7.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/providers/cerebras/models/zai-glm-4.7.toml b/providers/cerebras/models/zai-glm-4.7.toml index b7dcf5613..e81a22bd8 100644 --- a/providers/cerebras/models/zai-glm-4.7.toml +++ b/providers/cerebras/models/zai-glm-4.7.toml @@ -5,7 +5,6 @@ attachment = false reasoning = false temperature = true tool_call = true -interleaved = false open_weights = true [cost]