feat(z.ai): add glm-5.1

Christian Rocha created

Change summary

internal/providers/configs/zai.json   | 11 +++++++++++
internal/providers/configs/zhipu.json | 11 +++++++++++
2 files changed, 22 insertions(+)

Detailed changes

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",

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",