feat: Add Zai provider with GLM model support#1194
Draft
Gibbz wants to merge 2 commits into0xPlaygrounds:mainfrom
Draft
feat: Add Zai provider with GLM model support#1194Gibbz wants to merge 2 commits into0xPlaygrounds:mainfrom
Gibbz wants to merge 2 commits into0xPlaygrounds:mainfrom
Conversation
- Implement Zai provider compatible with Anthropic API - Add support for GLM models (GLM-4.7, GLM-4.6, GLM-4.5 series) - Include streaming support and tool integration - Add three examples: basic agent, streaming, and tools - API endpoint: https://api.z.ai/api/anthropic - Environment variable: ZAI_API_KEY Models added: - GLM_4_7: Latest flagship with SOTA coding, reasoning, and agentic capabilities - GLM_4_6: High performance, strong coding, 200K context - GLM_4_5, GLM_4_5_X, GLM_4_5_AIR, GLM_4_5_AIRX, GLM_4_5_FLASH: Various performance/speed options
Author
|
i'm using this in my own project and its working fine :) |
Contributor
|
Hi @Gibbz, thanks for opening a PR! Please remove the markdown files that Claude (or whatever coding AI assistant you've used) has created. |
remove md file
Author
|
Ah sorry one slipped through. Ive removed that file 👍 |
Author
|
ive made it a draft, as ill investigate just using openai as an endpoint. That may be all thats needed! |
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.
Models added: