From 5e57f403c82bfda548a7532f85eec0380d69c244 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Fri, 27 Mar 2026 13:46:02 -0400 Subject: [PATCH] feat(z.ai): add glm-5.1 --- internal/providers/configs/zai.json | 11 +++++++++++ internal/providers/configs/zhipu.json | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/internal/providers/configs/zai.json b/internal/providers/configs/zai.json index 7370b6280506ed79a6e0a84da6730fb8938bb5ff..354dca28d17f8774f063e1326f4c30c5eaf8f676 100644 --- a/internal/providers/configs/zai.json +++ b/internal/providers/configs/zai.json @@ -7,6 +7,17 @@ "default_large_model_id": "glm-4.7", "default_small_model_id": "glm-4.7-flash", "models": [ + { + "id": "glm-5.1", + "name": "GLM-5.1", + "cost_per_1m_in": 1.0, + "cost_per_1m_out": 3.2, + "cost_per_1m_in_cached": 0.2, + "context_window": 204800, + "default_max_tokens": 65536, + "can_reason": true, + "supports_attachments": false + }, { "id": "glm-5-turbo", "name": "GLM-5-Turbo", diff --git a/internal/providers/configs/zhipu.json b/internal/providers/configs/zhipu.json index c502541c170e11716a24f7ca6bd3cd129c4b22bd..935fcfbb042fea679294e7619a4656064ecf8137 100644 --- a/internal/providers/configs/zhipu.json +++ b/internal/providers/configs/zhipu.json @@ -7,6 +7,17 @@ "default_large_model_id": "glm-4.7", "default_small_model_id": "glm-4.7-flash", "models": [ + { + "id": "glm-5.1", + "name": "GLM-5.1", + "cost_per_1m_in": 1.0, + "cost_per_1m_out": 3.2, + "cost_per_1m_in_cached": 0.2, + "context_window": 204800, + "default_max_tokens": 65536, + "can_reason": true, + "supports_attachments": false + }, { "id": "glm-5", "name": "GLM-5",