feat: add z.ai Coding Plan as built-in model provider#235
Open
iamlordutkarsh wants to merge 1 commit into
Open
feat: add z.ai Coding Plan as built-in model provider#235iamlordutkarsh wants to merge 1 commit into
iamlordutkarsh wants to merge 1 commit into
Conversation
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
|
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.