Skip to content

feat: add z.ai Coding Plan as built-in model provider#235

Open
iamlordutkarsh wants to merge 1 commit into
boldsoftware:mainfrom
iamlordutkarsh:main
Open

feat: add z.ai Coding Plan as built-in model provider#235
iamlordutkarsh wants to merge 1 commit into
boldsoftware:mainfrom
iamlordutkarsh:main

Conversation

@iamlordutkarsh

Copy link
Copy Markdown

Add GLM-5.2, GLM-5.1, and GLM-4.6 models accessible via z.ai Coding Plan endpoint (https://api.z.ai/api/coding/paas/v4). Models are activated by setting ZAI_API_KEY environment variable.

  • Add ZAIURL constant and ZAI_API_KEY env var in llm/oai/oai.go
  • Add three GLM-zai Model definitions and registry entries
  • Add catalog entries in models/models.go with z.ai base URL
  • Add ZAIEnv() source in modelsources/modelsources.go to ensure z.ai models use ZAI_API_KEY instead of OPENAI_API_KEY
  • Wire up ZAI_API_KEY in cmd/shelley/main.go across all source paths

Add GLM-5.2, GLM-5.1, and GLM-4.6 models accessible via z.ai Coding Plan
endpoint (https://api.z.ai/api/coding/paas/v4). Models are activated by
setting ZAI_API_KEY environment variable.

- Add ZAIURL constant and ZAI_API_KEY env var in llm/oai/oai.go
- Add three GLM-zai Model definitions and registry entries
- Add catalog entries in models/models.go with z.ai base URL
- Add ZAIEnv() source in modelsources/modelsources.go to ensure z.ai
  models use ZAI_API_KEY instead of OPENAI_API_KEY
- Wire up ZAI_API_KEY in cmd/shelley/main.go across all source paths
@cla-bot

cla-bot Bot commented Jul 4, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement, and we don't have you on file. In order for us to review and merge your code, please contact @crawshaw at david@bold.dev to get yourself added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant