mirror of
https://github.com/KeygraphHQ/shannon.git
synced 2026-04-25 01:25:52 +03:00
[PR #129] feat: add Z.AI GLM models as router provider #132
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/shannon-KeygraphHQ#132
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/KeygraphHQ/shannon/pull/129
Author: @rizkydwicmt
Created: 2/13/2026
Status: 🔄 Open
Base:
main← Head:feat/zai-glm-provider📝 Commits (2)
c6d10b1feat: add Z.AI GLM models as router provider7cab544Update configs/router-config.json📊 Changes
6 files changed (+63 additions, -9 deletions)
View changed files
📝
.env.example(+5 -0)📝
README.md(+5 -0)📝
configs/router-config.json(+37 -4)📝
docker-compose.yml(+1 -0)📝
shannon(+4 -4)📝
src/ai/claude-executor.ts(+11 -1)📄 Description
Summary
Adds Z.AI (Zhipu AI) GLM models as a new provider option for Shannon's router mode, enabling pentesting with Chinese-developed large language models.
Changes
Router Configuration (
configs/router-config.json)zaiprovider with endpointhttps://api.z.ai/api/coding/paas/v4/chat/completionsglm-5,glm-4.7,glm-4.7-flashmaxcompletiontokenstransformer pattern as OpenAISDK Environment Forwarding (
src/ai/claude-executor.ts)ANTHROPIC_BASE_URL,ANTHROPIC_AUTH_TOKEN, andROUTER_DEFAULTenv vars to the SDK subprocessAuthenticationError: Invalid API keyDocker & CLI
ZAI_API_KEYtodocker-compose.ymlrouter service environmentZAI_API_KEYtoshannonCLI provider key validation checksDocumentation
.env.examplewith Z.AI configuration sectionREADME.mdwith Z.AI in Quick Setup and Experimental Models tableTesting
glm-4.7model via curlglm-4.7Usage
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.