From ec7e0d7d4451f43b09000bfc0e29a93d1226b976 Mon Sep 17 00:00:00 2001 From: Blesswin Samuel Date: Sat, 4 Jul 2026 06:18:48 +0530 Subject: [PATCH 1/5] feat(digitalocean): add GLM 5.1 and GLM 5.2 models --- providers/digitalocean/models/glm-5.1.toml | 10 ++++++++++ providers/digitalocean/models/glm-5.2.toml | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100644 providers/digitalocean/models/glm-5.1.toml create mode 100644 providers/digitalocean/models/glm-5.2.toml diff --git a/providers/digitalocean/models/glm-5.1.toml b/providers/digitalocean/models/glm-5.1.toml new file mode 100644 index 0000000000..3d97e25c93 --- /dev/null +++ b/providers/digitalocean/models/glm-5.1.toml @@ -0,0 +1,10 @@ +base_model = "zhipuai/glm-5.1" +reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "max"] }] + +[interleaved] +field = "reasoning_content" + +[cost] +input = 0.975 +output = 4.30 +cache_read = 0.26 diff --git a/providers/digitalocean/models/glm-5.2.toml b/providers/digitalocean/models/glm-5.2.toml new file mode 100644 index 0000000000..63b28e6149 --- /dev/null +++ b/providers/digitalocean/models/glm-5.2.toml @@ -0,0 +1,10 @@ +base_model = "zhipuai/glm-5.2" +reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "max"] }] + +[interleaved] +field = "reasoning_content" + +[cost] +input = 1.05 +output = 4.40 +cache_read = 0.21 From 1f5d837a0041d6e8b192d6d7f40af3dba1594da6 Mon Sep 17 00:00:00 2001 From: Blesswin Samuel Date: Sat, 4 Jul 2026 06:25:24 +0530 Subject: [PATCH 2/5] fix(digitalocean): use standalone format for GLM 5.1 and GLM 5.2 --- providers/digitalocean/models/glm-5.1.toml | 21 +++++++++++++++++++-- providers/digitalocean/models/glm-5.2.toml | 21 +++++++++++++++++++-- 2 files changed, 38 insertions(+), 4 deletions(-) diff --git a/providers/digitalocean/models/glm-5.1.toml b/providers/digitalocean/models/glm-5.1.toml index 3d97e25c93..6871c87dec 100644 --- a/providers/digitalocean/models/glm-5.1.toml +++ b/providers/digitalocean/models/glm-5.1.toml @@ -1,5 +1,15 @@ -base_model = "zhipuai/glm-5.1" +name = "GLM 5.1" +description = "Strong GLM coding model for agentic engineering, terminals, and repository generation" +family = "glm" +release_date = "2026-04-07" +last_updated = "2026-04-07" +attachment = false +reasoning = true reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "max"] }] +temperature = true +tool_call = true +structured_output = true +open_weights = true [interleaved] field = "reasoning_content" @@ -7,4 +17,11 @@ field = "reasoning_content" [cost] input = 0.975 output = 4.30 -cache_read = 0.26 + +[limit] +context = 200_000 +output = 131_072 + +[modalities] +input = ["text"] +output = ["text"] diff --git a/providers/digitalocean/models/glm-5.2.toml b/providers/digitalocean/models/glm-5.2.toml index 63b28e6149..26c322d27f 100644 --- a/providers/digitalocean/models/glm-5.2.toml +++ b/providers/digitalocean/models/glm-5.2.toml @@ -1,5 +1,15 @@ -base_model = "zhipuai/glm-5.2" +name = "GLM 5.2" +description = "Open flagship GLM for long-horizon coding agents and million-token context work" +family = "glm" +release_date = "2026-06-13" +last_updated = "2026-06-13" +attachment = false +reasoning = true reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "max"] }] +temperature = true +tool_call = true +structured_output = true +open_weights = true [interleaved] field = "reasoning_content" @@ -7,4 +17,11 @@ field = "reasoning_content" [cost] input = 1.05 output = 4.40 -cache_read = 0.21 + +[limit] +context = 1_000_000 +output = 131_072 + +[modalities] +input = ["text"] +output = ["text"] From df7bbcab5fc2ee6b626afd259db7e5b4552d5268 Mon Sep 17 00:00:00 2001 From: Blesswin Samuel Date: Sat, 4 Jul 2026 06:26:38 +0530 Subject: [PATCH 3/5] fix(digitalocean): restore cache_read pricing for GLM 5.1 and GLM 5.2 --- providers/digitalocean/models/glm-5.1.toml | 1 + providers/digitalocean/models/glm-5.2.toml | 1 + 2 files changed, 2 insertions(+) diff --git a/providers/digitalocean/models/glm-5.1.toml b/providers/digitalocean/models/glm-5.1.toml index 6871c87dec..48f211e631 100644 --- a/providers/digitalocean/models/glm-5.1.toml +++ b/providers/digitalocean/models/glm-5.1.toml @@ -17,6 +17,7 @@ field = "reasoning_content" [cost] input = 0.975 output = 4.30 +cache_read = 0.26 [limit] context = 200_000 diff --git a/providers/digitalocean/models/glm-5.2.toml b/providers/digitalocean/models/glm-5.2.toml index 26c322d27f..ff9ba3f69d 100644 --- a/providers/digitalocean/models/glm-5.2.toml +++ b/providers/digitalocean/models/glm-5.2.toml @@ -17,6 +17,7 @@ field = "reasoning_content" [cost] input = 1.05 output = 4.40 +cache_read = 0.21 [limit] context = 1_000_000 From ad40358e2407c04ae4a4e0abc925b8834aaad12c Mon Sep 17 00:00:00 2001 From: Blesswin Samuel Date: Sat, 4 Jul 2026 06:27:59 +0530 Subject: [PATCH 4/5] fix(digitalocean): use base_model for GLM 5.1 and GLM 5.2 --- providers/digitalocean/models/glm-5.1.toml | 20 +------------------- providers/digitalocean/models/glm-5.2.toml | 20 +------------------- 2 files changed, 2 insertions(+), 38 deletions(-) diff --git a/providers/digitalocean/models/glm-5.1.toml b/providers/digitalocean/models/glm-5.1.toml index 48f211e631..3d97e25c93 100644 --- a/providers/digitalocean/models/glm-5.1.toml +++ b/providers/digitalocean/models/glm-5.1.toml @@ -1,15 +1,5 @@ -name = "GLM 5.1" -description = "Strong GLM coding model for agentic engineering, terminals, and repository generation" -family = "glm" -release_date = "2026-04-07" -last_updated = "2026-04-07" -attachment = false -reasoning = true +base_model = "zhipuai/glm-5.1" reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "max"] }] -temperature = true -tool_call = true -structured_output = true -open_weights = true [interleaved] field = "reasoning_content" @@ -18,11 +8,3 @@ field = "reasoning_content" input = 0.975 output = 4.30 cache_read = 0.26 - -[limit] -context = 200_000 -output = 131_072 - -[modalities] -input = ["text"] -output = ["text"] diff --git a/providers/digitalocean/models/glm-5.2.toml b/providers/digitalocean/models/glm-5.2.toml index ff9ba3f69d..63b28e6149 100644 --- a/providers/digitalocean/models/glm-5.2.toml +++ b/providers/digitalocean/models/glm-5.2.toml @@ -1,15 +1,5 @@ -name = "GLM 5.2" -description = "Open flagship GLM for long-horizon coding agents and million-token context work" -family = "glm" -release_date = "2026-06-13" -last_updated = "2026-06-13" -attachment = false -reasoning = true +base_model = "zhipuai/glm-5.2" reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "max"] }] -temperature = true -tool_call = true -structured_output = true -open_weights = true [interleaved] field = "reasoning_content" @@ -18,11 +8,3 @@ field = "reasoning_content" input = 1.05 output = 4.40 cache_read = 0.21 - -[limit] -context = 1_000_000 -output = 131_072 - -[modalities] -input = ["text"] -output = ["text"] From 553602a66fa21769df60d94824e1608c0094a760 Mon Sep 17 00:00:00 2001 From: Blesswin Samuel Date: Sat, 4 Jul 2026 15:55:34 +0530 Subject: [PATCH 5/5] fix(digitalocean): GLM 5.1 exposes no reasoning control, use empty reasoning_options --- providers/digitalocean/models/glm-5.1.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/digitalocean/models/glm-5.1.toml b/providers/digitalocean/models/glm-5.1.toml index 3d97e25c93..d57bac960d 100644 --- a/providers/digitalocean/models/glm-5.1.toml +++ b/providers/digitalocean/models/glm-5.1.toml @@ -1,5 +1,5 @@ base_model = "zhipuai/glm-5.1" -reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "max"] }] +reasoning_options = [] [interleaved] field = "reasoning_content"