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 } + } + } } } }