feat: 添加 Z.AI 编码计划支持及 GLM-4.7 配置

- 添加 Z.AI 编码计划支持,配置 GLM-4.7 模型并设置相应的 API 地址和密钥。
This commit is contained in:
2026-01-30 17:23:29 +08:00
parent 09ed1e3a98
commit 9ff4848928

View File

@@ -101,6 +101,22 @@
} }
} }
} }
},
"zai-coding-plan": {
"name": "Z.AI Coding Plan",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://api.z.ai/api/coding/paas/v4",
"apiKey": "{env:ZAI_API_KEY}"
},
"models": {
"glm-4.7": {
"name": "GLM-4.7",
"reasoning": true,
"modalities": { "input": ["text"], "output": ["text"] },
"limit": { "context": 204800, "output": 131072 }
}
}
} }
} }
} }