From 9ff48489287a292212037e3fc96c301d52175264 Mon Sep 17 00:00:00 2001 From: imbytecat Date: Fri, 30 Jan 2026 17:23:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20Z.AI=20=E7=BC=96?= =?UTF-8?q?=E7=A0=81=E8=AE=A1=E5=88=92=E6=94=AF=E6=8C=81=E5=8F=8A=20GLM-4.?= =?UTF-8?q?7=20=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 Z.AI 编码计划支持,配置 GLM-4.7 模型并设置相应的 API 地址和密钥。 --- opencode.jsonc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/opencode.jsonc b/opencode.jsonc index cf19f13..8822187 100644 --- a/opencode.jsonc +++ b/opencode.jsonc @@ -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 } + } + } } } }