feat(opencode): добавлен провайдер GLM-5.1 (Coding Plan) и TODO.md

- Зачем:
  - подключение модели glm-5.1 через подписку GLM Coding Plan Lite.
- Что:
  - добавлен кастомный провайдер zai с OpenAI-compatible адаптером.
  - создан TODO.md с планом миграции на config.d + stow (anomalyco/opencode#9062).
- Проверка:
  - открыть opencode, выполнить /models, убедиться что zai/glm-5.1 доступен.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
ddadminandClaude Opus 4.6 committed 2026-03-29 17:17:01 +03:00
1 parent 9ce545d0bd
commit ffc794a219
2 files changed
+31

No files matched your search

+19
View File
@@ -52,5 +52,24 @@
"enabled": false
}
},
"provider": {
"zai": {
"npm": "@ai-sdk/openai-compatible",
"name": "GLM Coding Plan (custom)",
"options": {
"baseURL": "https://api.z.ai/api/coding/paas/v4",
"apiKey": "{env:ZAI_API_KEY}"
},
"models": {
"glm-5.1": {
"name": "GLM-5.1",
"limit": {
"context": 200000,
"output": 65536
}
}
}
}
},
"share": "manual"
}